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 180104 - Opening large JavaFX project causes IDE to freeze with increasing memory usage.
Summary: Opening large JavaFX project causes IDE to freeze with increasing memory usage.
Status: VERIFIED DUPLICATE of bug 183265
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Anton Chechel
URL: http://www.dilijent.com/
Keywords:
: 179650 181839 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-01 09:59 UTC by adeanva
Modified: 2010-05-19 13:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans log file that was produced during a project load that froze NB (70.37 KB, text/plain)
2010-02-05 10:38 UTC, adeanva
Details
visualVM sampler output (94.00 KB, application/octet-stream)
2010-02-08 08:09 UTC, adeanva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adeanva 2010-02-01 09:59:46 UTC
Opening large JavaFX project causes IDE to freeze with increasing memory usage.

We have a medium/large JavaFX project developed in NB 6.7.1. (118 java files, multiple 3rd party jars and 126 JavaFX script files.)

Netbeans 6.8 freezes up during the initial scanning process and the IDE has to be killed.

We have developers using Windows XP, Mac OS and Linux and they have all experienced this problem.  We have not been able to upgrade because of it.

It may be related to an issue we've had with the javafxpackager.  You can not increase the -Xmx JVM arguments to the javafxpacker.  We have seen OutOfMemory Heap Space issues related to the javafxpackager and have had to change our project to a standard SE with custom javafxc tasks so we can increase the memory limits.
Comment 1 Lukas Hasik 2010-02-02 01:12:39 UTC
Closing as INCOMPLETE for now. We need more details about the problem. Please, provide a profiling snapshot [1], [2].

There used to be a bug with similar description #179013 that was fixed in Patch1 for NB6.8. The patch should be available soon [3] , could you please re-check it when it's available?


[1] http://wiki.netbeans.org/FaqProfileMeNow
[2] http://wiki.netbeans.org/FaqMemoryDump
[3] http://wiki.netbeans.org/NetBeansPatchesProcess
Comment 2 Alexandr Scherbatiy 2010-02-05 03:42:02 UTC
Need more info.
Comment 3 adeanva 2010-02-05 10:38:21 UTC
Created attachment 93922 [details]
Netbeans log file that was produced during a project load that froze NB

This log is from a Netbeans 6.8 instance started up without any projects open.  The I try to open a JavaFX project created under NB6.7.1

After several minutes, the IDE froze with the status:
"Finding packages in C;\temp\ClientAppFramwrok\src"  40%

Had to kill the process.
Comment 4 adeanva 2010-02-05 10:39:24 UTC
I've tried to get more information for you.
I did a jmap dump at startup.  I then tried to open the JavaFX project, waited until the status was, "Finding packages in C;\temp\ClientAppFramwrok\src  40%".
The IDE was none-responsive for many minutes.
I did another jmap dump.

The first jmap was 66MB and the second, 208MB.
I was not able to upload even the smaller file, I got an error that only patches can be that large.

I've attached the messages.log file created during this test.

I will install the latest nightly to see if anything is fixed.

Besides dump files, what other information can I get for you?

Can you suggest another way for me to get you these dump files?  Maybe a ftp server?
Comment 5 Alexandr Scherbatiy 2010-02-08 03:05:34 UTC
Could you use the VisualVM sampler to create a profiler snapshot of such a situation and attach it to a new issue? 

- Download the VisualVM from https://visualvm.dev.java.net/download.html
- Go to Tools-> Plugins-> Available plugins
- Install VisualVM-Sampler module
- Run the NetBeans
- Right-click on the NetBeans Platform Application node in Visual VM and
  select Sample
- Attach the sampler profile snapshot
Comment 6 adeanva 2010-02-08 07:09:42 UTC
Thanks for the advice.
I was trying with VisualVM (1.2.2) and it had crashed so was not able to get a after snapshot, but will try the sample plugin.
Comment 7 adeanva 2010-02-08 08:09:05 UTC
Created attachment 93963 [details]
visualVM sampler output

Attached is the VisualVM sampler snapshot after loading the JavaFX project.
This maybe OBE, since I installed the nb 6.8 patch and the updates to the FX parser seem to have fixed the IDE freezing issue.

The only issue I still have is https://netbeans.org/bugzilla/show_bug.cgi?id=178491

But no one seems to be paying attention to that bug, so will have to stay with 6.7.1
Comment 8 Anton Chechel 2010-03-11 07:40:14 UTC
*** Bug 181839 has been marked as a duplicate of this bug. ***
Comment 9 Anton Chechel 2010-03-11 07:41:25 UTC
*** Bug 179650 has been marked as a duplicate of this bug. ***
Comment 10 Anton Chechel 2010-04-13 13:30:17 UTC

*** This bug has been marked as a duplicate of bug 183265 ***
Comment 11 Alexandr Scherbatiy 2010-05-18 09:46:44 UTC
verified as duplicate