Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Increasing size of Java heap when running JSP in JBuilder6

Status
Not open for further replies.

RebLazer

Programmer
Jun 7, 2002
438
US
I'm running an application in JBuilder 6 Professional in which execution begins by doing a "Web Run" on a JSP page. The JSP page calls a servlet that is concatenating enormously long strings - in the order of 28.5 million characters long. While processing such a string, I get a "java.lang.OutOfMemoryError" with "no stack trace available".

I would assume the solution here is to increase the Java heap to the full RAM capacity of my computer by using the VM parameter "java -mx256m myprog" to set it.

My problem is, when I do a "Web Run", where can I place that VM parameter so that it will be passed to the VM? I don't see any appropriate place on the "Project | Project Properties | Run" tab. It seems like none of those would ever be executed: I'm not running an applet, or a main class, etc.

I would greatly appreciate any help.

Thank you very much!
Lazer
 
Hi RebLazer,

I'm currently experiencing the exact same problem. How did you fix it in the end?

Thanks for your help
 
Pas,

I'm very sorry but quite honestly, I haven't the foggiest recollection...

Lazer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top