[jdom-interest] Out of memory Error!
Angelo
violin at thesaguaros.com
Wed Mar 20 01:16:38 PST 2002
alex_pchome wrote:
> Hi All&Ian
> I try to type," java -Xmx64m"
> In my cmd command line, but it doesn't work.
> the message is====>
> ---------------------------------------------
> Usage: java [-options] class [args...]
> (to execute a class)
> or java -jar [-options] jarfile [args...]
> (to execute a jar file)
> -------------------------------------------
>
> Or I try " java -Xmx 64m"
> the message is====>
> -------------------------------------------
> Invalid maximum heap size: -Xmx
> Could not create the Java virtual machine.
> ----------------------------------------------
> I don't know UNIX, so I guess "TOMCAT_OPTS" is environment variable.
> So I put it into my W2000 environment variable setting, but still dones't
> work.
> Can anyone give more help.
> Regard
> Alex
>
> Ian wrote:
>
>
>
>>You can give java more memory by using the -Xmx command
>>line option e.g. java -Xmx64m. Type java -X for details.
>>To get this to work with tomcat 3 on unix add this:
>>
>>TOMCAT_OPTS="-Xmx64m"; export TOMCAT_OPTS
>>
>>to the tomcat startup script. I imagine there is a
>>similar solution for tomcat 4 on win 2000.
>>
>>
>>
>>--
>>Ian.
>>
>>
>>
>>>alex_pchome wrote:
>>>
>>>Hi All
>>> I am writing a jsp for dealing with an xml schema to show its xml
>>>structure.
>>>But I got "out of memory error".
>>>I think it is because of using a loop to deal with the xml schema which
>>>
> may a
>
>>>little big.
>>>However I noticed that my system memory didn't run dry.
>>>I am sure it's not a dead loop.
>>>How can I allocate more memory for my jsp.
>>>Or have a suggestion of salving this problem?
>>>
>>>Window 2000 server
>>>Tom cat 4.0
>>>jdom 0.7
>>>
>>>Thanks!
>>> Alex
>>>
>
>
> ==========================================================
> PC home ¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw
> PC home Online ºô¸ô®a®x¡G·|û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
> ==========================================================
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>
>
>
You must type "java -Xmx64m" , not "java -Xmx 64m"
Bye
Angelo
More information about the jdom-interest
mailing list