File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
visualvm/applicationviews/src/org/graalvm/visualvm/application/views/monitor Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -503,13 +503,16 @@ private void initModels(ApplicationMonitorModel model) {
503
503
String USED_PERM = NbBundle .getMessage (ApplicationMonitorView .class , "LBL_Used_PermGen" ); // NOI18N
504
504
String USED_PERM_LEG = NbBundle .getMessage (ApplicationMonitorView .class , "LBL_Used_PermGen_leg" , permgenName ); // NOI18N
505
505
String MAX_PERM = NbBundle .getMessage (ApplicationMonitorView .class , "LBL_Max_PermGen_size" ); // NOI18N
506
+ long permgenMax = model .getPermgenMax ();
506
507
507
508
SimpleXYChartDescriptor chartDescriptor =
508
509
SimpleXYChartDescriptor .bytes (10 * 1024 * 1024 , false , model .getChartCache ());
509
510
510
511
chartDescriptor .addLineFillItems (PERM_SIZE_LEG , USED_PERM_LEG );
511
512
chartDescriptor .setDetailsItems (new String [] { PERM_SIZE , USED_PERM , MAX_PERM });
512
- chartDescriptor .setLimitYValue (model .getPermgenMax ());
513
+ if (permgenMax != -1 ) {
514
+ chartDescriptor .setLimitYValue (permgenMax );
515
+ }
513
516
514
517
chartSupport = ChartFactory .createSimpleXYChart (chartDescriptor );
515
518
model .registerPermGenChartSupport (chartSupport );
You can’t perform that action at this time.
0 commit comments