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 243496 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED INVALID
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-02 21:04 UTC by joshginn
Modified: 2015-03-11 11:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208884


Attachments
stacktrace (1.43 KB, text/plain)
2014-04-02 21:04 UTC, joshginn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joshginn 2014-04-02 21:04:31 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24
OS: Windows 7

User Comments:
joshginn: Netbeans keeps freezing when I have two copies of netbeans open, even though I'm using the --userdir flag to route the second copy to use a different directory.
The error is specifically happening when I'm editing a Hibernate mapping file (*.hbm.xml). When I get to a "column=" field and start to fill in the column, a message comes up that says "Connecting to database" (to populate a list of column names) and then shortly after that it freezes.

Thanks for any help fixing this issue. If you can, please notify me when it is done.
Blessings,
Josh




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at com.microsoft.sqlserver.jdbc.TDSPacket.<init>(TDSPacket.java:4670)
   at com.microsoft.sqlserver.jdbc.TDSReader.readPacket(TDSReader.java:4833)
   at com.microsoft.sqlserver.jdbc.TDSCommand.detach(TDSCommand.java:5762)
   at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1704)
   at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:180)
   at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:155)
Comment 1 joshginn 2014-04-02 21:04:33 UTC
Created attachment 146517 [details]
stacktrace
Comment 2 Libor Fischmeistr 2014-04-04 13:11:11 UTC
Hello, thank you for the
Comment 3 joshginn 2014-04-04 19:09:25 UTC
Hi,
It looks like your full comment was cut off. Will you please resend it?
Also, what is the maximum amount of memory I can allocate to Netbeans? If I specify 750M on the command line I get an error and it won't open.

Thanks,
Josh
Comment 4 Libor Fischmeistr 2014-04-05 08:48:57 UTC
(In reply to joshginn from comment #3)
> Hi,
> It looks like your full comment was cut off. Will you please resend it?
> Also, what is the maximum amount of memory I can allocate to Netbeans? If I
> specify 750M on the command line I get an error and it won't open.
> 
> Thanks,
> Josh

Hello, sorry for that. I wanted to thank you for the report.

Look at http://wiki.netbeans.org/FaqNetbeansConf where you can find how to specify memory options. Also may be useful - https://performance.netbeans.org/howto/jvmswitches/

There is a mechanism that counts the max heap size. By default it's set to 1/5 of your available memory. If it would be greater than 1024M it's set to 1024M. But always you can overwrite it in <NB installation folder>/etc/netbeans.conf file.
Comment 5 matthias42 2015-03-11 11:50:55 UTC
Without some more info (heapdump) this can't be analyzed further. Please feel free to reopen if you can supply the required info. Thank you!