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.
Build: NetBeans IDE 6.8 (Build 200912041610) VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows XP User Comments: GUEST: jsp page coding GUEST: Executing an SQL command in a table with a BLOB column. GUEST: The computer was just sitting GUEST: Attempting to Run a web service client after editing the WebService parameters - which caused the artificats to be regenerated. GUEST: Solo consultaba la informacion de una tabla dentro de la base de datos de MySQL rdblaha1: I had altered my table 'provision'. To see the change I was running select * from 'provision' when I received the error. Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuilder.append(StringBuilder.java:119) at org.netbeans.modules.ruby.FindersHelper$FinderMethod.getSignature(FindersHelper.java:297) at org.netbeans.modules.ruby.DatabasePropertiesIndexer.createDynamicFinders(DatabasePropertiesIndexer.java:270)
Created attachment 97704 [details] stacktrace
When this happens the next time, can you please take a heap dump (http://wiki.netbeans.org/FaqMemoryDump) and attach it here to the issue?
Created attachment 97720 [details] IDE Log OutOfMemoryError at the end of file IllegalArgumentExceptin in the middle
Thanks, though what would be really useful is a heap dump (the log file contains just stack traces). Apparently your IDE should already automatically generate a heapdump to C:\Documents and Settings\vmolokov\.netbeans\6.8\var\log\heapdump.hprof Can you please attach that file here? I'm assigning this back to ruby to investigate further whether there is an issue with rails dynamic methods generation, it may consume too much memory. Most of the reports here are not related to that though.
I had uploaded hepdump to http://molokov.info/sources/heapdump/2010-04-19.zip (35M zipped, unzipped around 500M).
Thanks - unfortunately I'm not able to unzip the archive though, getting 'unsupported compression method 14' (tried with several zip tools available on linux and also downloading the file again). Which software did you use to create the zip?
zip file was in 7zip format Reuploaded it to http://molokov.info/sources/heapdump/2010-04-19.bz2 in BZip2 format
Thanks! I have now successfully opened the heap dump (as a side note, strange the previous zip didn't work, I tried also with 7z). Anyway, based on the heap dump there indeed seems to be an issue with Rails dynamic finders generation; will fix that for 6.9. As for the other unrelated reports here, please file separate issues with heap dumps. I'm going to close this issue once I've fixed the aforementioned issue.
Should be fixed now in ccd3f313e9bc. Now dynamic finders are generated only for code completion and in addition they are now generated incrementally (one level at time). This should reduce memory consumption quite a lot in these cases when you have rails models with a lot of columns. Thanks once again for reporting and for the heap dump!
Integrated into 'main-golden', will be available in build *201004230200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ccd3f313e9bc User: Erno Mononen <emononen@netbeans.org> Log: #184530 - OutOfMemoryError: Java heap space