PivotTablePane method call causes memory spike

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

PivotTablePane method call causes memory spike

Postby gs56037 » Thu Dec 02, 2010 4:27 pm

Hello:

We use Jidesoft's pivot grid in our application that maintains trading positions. In the code segment that does refresh of position screens - we are invoking PivotDataModel.calculate() followed by PivotTablePane.bothHeadersUpdated(). It is noticed that the call to bothHeadersUpdated( ) causes a big memory spike in the application - some times to the tune of 300 MB per real time trading position update.
This is impacting the performance of the application.

Can you please advice ?Is this the expected behavior ? Or can this be coded differently to not cause this huge albeit temporary spike in memory usage ?

Jide-version being used : 2.2.2.01

Code snippet below -

Thanks

public synchronized void refresh(boolean pForceRefresh) {
if (!(pForceRefresh || refreshFrame)) {
return;
}
final boolean isBlotterActive = this.positionBlotter.isActive();
if (!isBlotterActive) {
this.positionBlotter.setActive(true);
}
if (log.isTraceEnabled()) {
log.trace("Refreshing Pivot...");
}
if (pivotDataModel == null) {
throw new IllegalStateException("Pivot Data Model is null");
}
if (pivotTablePane == null) {
throw new IllegalStateException("Pivot Table Pane is null");
}

pivotDataModel.calculate();

pivotTablePane.bothHeadersUpdated();

if (log.isTraceEnabled()) {
log.trace("Pivot Refreshed");
}
this.positionBlotter.setActive(isBlotterActive);
}
gs56037
 
Posts: 1
Joined: Thu Dec 02, 2010 4:14 pm

Re: PivotTablePane method call causes memory spike

Postby JIDE Support » Thu Dec 02, 2010 5:02 pm

Please check the email just sent to you.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 73 guests