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 242530 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED WORKSFORME
Alias: None
Product: python
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Lou Dasaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-04 01:00 UTC by vamiot
Modified: 2014-12-16 04:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208123


Attachments
stacktrace (611 bytes, text/plain)
2014-03-04 01:00 UTC, vamiot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vamiot 2014-03-04 01:00:52 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-1376-on-20140228)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b53, Java(TM) SE Runtime Environment, 1.8.0-ea-b111
OS: SunOS

User Comments:
vamiot: running a program under jython (works fine with regular Python 2.6.1 64bit), parses a large text file (3 Million lines), generates some 20K xml records
Jython a 32bit version?




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(Arrays.java:3650)
   at java.lang.StringBuffer.toString(StringBuffer.java:671)
   at java.io.BufferedReader.readLine(BufferedReader.java:359)
   at java.io.BufferedReader.readLine(BufferedReader.java:389)
   at org.netbeans.modules.python.debugger.backend.PythonDebugClient.getMessage(PythonDebugClient.java:104)
   at org.netbeans.modules.python.debugger.backend.PythonDebugClient.access$000(PythonDebugClient.java:54)
Comment 1 vamiot 2014-03-04 01:00:54 UTC
Created attachment 145729 [details]
stacktrace
Comment 2 Lou Dasaro 2014-12-16 04:08:06 UTC
Thank you for your report. 

You probably need to increase the heap space allocated for Jython. 
    
Jython has its own -Xmx (maximum memory heap size) setting which you can find in jython.bat in the bin directory. Currently, this setting defaults to -Xmx512m, but you must set it to a sufficient size to run YOUR app, otherwise you will get Java OutOfMemory exceptions (even when there is plenty of spare memory on your system).

I tested adjusting this setting and it worksforme. 

If that's not the issue, then feel free to reopen with my apologies.