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 180915 - Memory leak when I use the "Script (run in command line)" mode
Summary: Memory leak when I use the "Script (run in command line)" mode
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-18 09:50 UTC by dreamclic
Modified: 2010-07-02 12:29 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NB project that illustrate the problem (1.85 KB, application/x-zip-compressed)
2010-02-18 09:50 UTC, dreamclic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dreamclic 2010-02-18 09:50:42 UTC
Created attachment 94299 [details]
NB project that illustrate the problem

I detected something that looks like a memory leak when I use "Script (run in command line)" in the "Run configuration").
Each time I run my project, the "netbeans.exe" process grows and never return to its "normal" size after script finish. So, after 10 or 20 runs, it takes more than 1.5GB and makes Windows crash (I get the famous blue screen).
Comment 1 dreamclic 2010-02-19 07:08:25 UTC
My configuration :
Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
System: Windows Vista version 6.0 running on x86; Cp1252; fr_FR (nb)
Userdir: C:\Users\ludovic\.netbeans\6.8
PHP : PHP 5.3.1 (cli) (built: Nov 19 2009 09:49:51)
Comment 2 Tomas Mysik 2010-02-25 03:17:58 UTC
If you run the script for e.g. 10 times, do you see any memory increase in the memory toolbar (in NetBeans)?

Personally, I cannot reproduce but I'm on Linux, maybe it's Windows specific? Filipe, try to reproduce on Windows, thanks a lot.

Product Version: NetBeans IDE Dev (Build 100224-a092e40d1324)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01
System: Linux version 2.6.31-19-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 3 dreamclic 2010-02-25 03:30:41 UTC
The memory toolbar in NetBeans stays about 50MB all the time. But in the Windows task manager the "netbeans.exe" process takes more ant more memory.

It seems to be Windows specific because I cannot reproduce on my Linux too (Ubuntu 9.10).
Comment 4 Tomas Mysik 2010-02-25 06:15:22 UTC
Reporter, please, close NB, try to remove file (move it somewhere else and then later return it back):
/netbeans/ide/modules/org-netbeans-modules-extexecution-destroy.jar
and start NB, try to run your script - does it help or not?

Thanks.
Comment 5 dreamclic 2010-02-25 06:42:21 UTC
There is no memory increase in this case :-))
I tested with 20 runs.
Comment 6 Tomas Mysik 2010-02-25 07:41:15 UTC
Reassigning, have a look at the comments, memory consumption seems to be caused by org-netbeans-modules-extexecution-destroy.jar.

Thanks.
Comment 7 Petr Hejl 2010-03-31 14:18:18 UTC
I was able to reproduce only on Vista (or for win XP platform allocated memory increase had to be very low). In my system it was 7-8 MB increase per single run.

Will discuss with Koshuke (author of winp).
Comment 8 Petr Hejl 2010-03-31 21:46:09 UTC
Fixed in web-main 1fd5ed53598b. Please verify.
Comment 9 Quality Engineering 2010-04-02 04:53:02 UTC
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1fd5ed53598b
User: Petr Hejl <phejl@netbeans.org>
Log: #180915 Memory leak when I use the "Script (run in command line)" mode
Comment 10 dreamclic 2010-07-02 12:29:38 UTC
Everything seems to be ok for me :

Product Version: NetBeans IDE 6.9 (Build 201006101454)
Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01
System: Windows Vista version 6.0 running on x86; Cp1252; fr_FR (nb)
Userdir: C:\Users\ludovic\.netbeans\6.9


Sorry for this late feedback...