This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 90734 - RE Operation: Performance regression issue
Summary: RE Operation: Performance regression issue
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Reverse Engineering (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Viktor Lapitski
URL:
Keywords: PERFORMANCE, REGRESSION
Depends on:
Blocks:
 
Reported: 2006-12-07 11:31 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
REOperationCodeSamples java project (15.48 KB, application/octet-stream)
2006-12-07 11:52 UTC, Alexandr Scherbatiy
Details
IDE looks freezing after operation reverse engineering actions (62.31 KB, image/png)
2006-12-07 11:54 UTC, Alexandr Scherbatiy
Details
OutOfMemoryError in IDE log file (21.28 KB, text/plain)
2007-02-06 14:34 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2006-12-07 11:31:27 UTC
Steps to reproduce:

- Reverse Engineer the attached java project into UML project
- Expand 'operations' node under 'test|basic|TestConditionIf' class element
- Reverse engineer 'testConditionIf1' operation and create a sequence diagram
- Reverse engineer 'testConditionIf2' operation and create a sequence diagram
- Reverse engineer 'testConditionIf3' operation and create a sequence diagram

 After some operations IDE looks freezing.
 See attached snap-shot.
Comment 1 Alexandr Scherbatiy 2006-12-07 11:52:03 UTC
Created attachment 36543 [details]
REOperationCodeSamples java project
Comment 2 Alexandr Scherbatiy 2006-12-07 11:54:01 UTC
Created attachment 36544 [details]
IDE looks freezing after operation reverse engineering actions
Comment 3 Kris Richards 2006-12-19 00:00:41 UTC
on the intel mac, this causes a stack overflow. It looks to be the same font problem that we see in other 
stack overflows. (This is a know mac jvm bug that Apple is working on)

Does this stack overflow occur on the PC?
Comment 4 Alexandr Scherbatiy 2006-12-19 10:37:17 UTC
I did not see any exceptions on Windows XP.
Comment 5 Alexandr Scherbatiy 2007-02-06 14:33:33 UTC
OutOfMemoryError is thrown when I used the latest nbms:

java.lang.OutOfMemoryError: Java heap space
  at java.util.Arrays.copyOfRange(Arrays.java:3209)
  at java.lang.String.<init>(String.java:216)
  at java.io.BufferedReader.readLine(BufferedReader.java:331)
  at java.io.BufferedReader.readLine(BufferedReader.java:362)
Comment 6 Alexandr Scherbatiy 2007-02-06 14:34:23 UTC
Created attachment 38106 [details]
OutOfMemoryError in IDE log file
Comment 7 Kris Richards 2007-02-07 18:06:13 UTC
why are these "out of memory" comments attached to this bug? Were you following the steps to reproduce 
this bug and got the exception? What were you doing when you got the exception? What are your memory 
settings for your IDE?
Comment 8 Alexandr Scherbatiy 2007-02-08 09:05:46 UTC
I got the exceptions exactly followed by the steps.
My netbeans settings were:
netbeans_default_options="-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m
-J-XX:MaxPermSize=160m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true"

But IDE still looks like frozen even I have increased my memory settings.
Comment 9 Alexandr Scherbatiy 2007-02-09 11:21:42 UTC
The IDE is frozen for some time on Linux Ubuntu.
Comment 10 Viktor Lapitski 2007-02-09 13:04:20 UTC
don't see what we can do on 128M - it is just too little. 
With normal setting - Xmx512m - 2 fixes resulted in improved performance:
1.using weak references allowed to avoid in some cases, not always of course,
reparsing of the library 
2.blocking of model element change notifications during RE 
allowed to avoid snowballing effect when number of opened diagram grows
The fixes were commited into release55 branch.
Comment 11 Alexandr Scherbatiy 2007-02-12 11:53:52 UTC
verified