Show Some Love

Netbeans Default Options, startng jvm with more memory

This forum was posted on Sunday, May 19, 2013 9:13:02 PM

I'm facing OutOfMemoryException. I increased memory of jvm in netbeans by Project->Properties->Run->VM Options to -Xms1600M -Xmx1600M.
I'm running 32-bit java on windows 7 4GB RAM JDK Ver. 1.7 Netbeans Ver. 7.0.1
But When I execute

System.out.println("MaxMemory: " + Runtime.getRuntime().maxMemory()/1024/1024);
System.out.println("FeeMemory: " + Runtime.getRuntime().freeMemory()/1024/1024);
System.out.println("TotalMemory: " + Runtime.getRuntime().totalMemory()/1024/1024);

I get
MaxMemory: 247
FeeMemory: 14
TotalMemory: 15

I attempted to update netbeans_default_options by changinf netbeans.conf file.
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

netbeans_default_options="-J-client -J-Xss2m -J-Xmx1800m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

But It shows me JVM creation unsucessful error.
As suggested update made:
netbeans_default_options="-J-client -J-Xss2m -J-Xmx1400m -J-Xms1400m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

Still facing JVM Creation unsucessful error
Thank You in advance

159 Viewed this Question

 Recent Replies on "Netbeans Default Options, startng jvm with more memory"

  • Nobody has replied on this post, be first to post answer.

Post Your Solution for this Question

Note: Please Put Code into <code></code> block.

Threads related to "Netbeans Default Options, startng jvm with more memory":

In-browser Applet automation

I am trying to automate in-browser applet. presently I am automating using reflection and accessibility but for in-browser applets I am not finding any approach.Can anyone provide an approach or sample code snippet snippet to do this?Your views on the problem are apprised.

How to convert String to datetime in the SQL query? duplicate

Possible Duplicate: TSQL: datetime from char string error I am incapable to update String to datetime. I am working with SQL Server 2005.String frmDate="03/09/2012";String toDate="04/09/2012";SimpleDateFormat formater = new SimpleDateFormat("dd/MM/yyyy");Date frmDate1 = formater.parse(frmDate);Date toDate1=formater.parse(toDate); String query3="select * from dbo.Monthly_PFSPL " + "where update (datetime Added_Date 103) " + "between '"+

String#equals throw an ArrayIndexOutOfBoundException

The stacktrace is quite big but This is the related section.Caused by: java.language.ArrayIndexOutOfBoundsException: 33 at java.language.String.equals( at java.util.HashMap.get( when I recover a element from HashMap String#equaqls is invoked. Then an ArrayIndexOutOfBoundException thrown from line if (v1i++ != v2j++)// Sun java 1.6public boolean equals(Object anObject) { if (this == anObject) { return true; } if (anObject instanceof String) { String another

Parsing Xml with SAX Parser

I am trying to parse an xml file with SAX Parser. i require to get properties and it's values of a start elementOperation Succeeded Service-Type = Frames-User Framed-Protocol = PPP Framed-Routing = None IN this xml i require to get Settings tag/start element properties along with it's values.These properties are dynamic so I am trying to make a map of them. I am fresher to SAX Parser.So far my java code snippet snippet:public void startElement(String s String s1 String elementName properties at

How to asynchronously modify an array of Strings

I thought this was an interesting programming problem so I posted it even though I think I hv a solution logic that is best sufficient see (*). If anyone has an elegant solution I would love to see it!I am working with a method that calls external library that does http requests to a server. i require to have K strings as input to be effective i.e. each invocation of the external resource is a HTTP request and i require to buffer up little data for effectiveness. (As an illustration let K be 200 an

How to separate 2 Output data using line in java closed

(Sorry for my mistakes in spelling)o/p came from .cvs file "first Name" "Last Name" "Main-Email" "Current Employer" "Internal Contact ID" "PSI Club member Nbr." "Membership Type" "Membership Status" "member Since" "Membership Card Sent" "Membership Start Date" "Membership Expiration Date" "Nationality 1" "Membership ID" "Pierre" "ABT" "pi

Starting with Apache POI closed

I'm fresher at apache POI. I hv downloaded JARs but have no logic where to start. Can anyone advise best links for getting started with. I checked on project site but not finding it helpful.

Manning Spring , Hibernate Cover Image closed

Not sure if it's the right post as this is not a technical issue but I am quite intrigued about the cover image of the famous Manning in Spring Hibernate books. What does that image signify? I can not relate that image with java technology. Any inputs from anyone as why the publisher uses the image of a man with little dress and stick (Apologies as I don't know what sort of outfit is that). That man belongs to which culture and is it that the author is any approach related to that cultur

AutoCompleteTextView Via XMLParsing onTextChange

I have it problem. i require to send a call to my SAX Parser (generally user tries enter name of the student) to get the names. What I am doing right now is sending a token-string to my HttpHandler which is returning 10 records generally becoz total no of students are about 40K so I can not parse them all at once. I am calling my AsyncTask for ParsingXML in onTextChanged event of AutoCompletetextview. but still I am not capable to set the adapter to Autocomplete. public ArrayList parsexml(String token) { tr

How do you install free IBM WebSphere Application Server for Developers

I hv downloaded and unzipped in a folder to get disc1 to disc3 folders but there's no exe to launch and no instruction in readme file so how do you install ?IBM WebSphere application Server for Developers including Liberty Profile v8.5 (segment 1 of 3) (988M)Download nowIBM WebSphere application Server for Developers including Liberty Profile v8.5 (segment 2 of 3) (1G)Download nowIBM WebSphere application Server for Developers including