RE: OT: OutOfMemory

2005-12-02 Thread Garner, Shawn
a). Shawn -Original Message- From: Chen Jerry [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 12:12 AM To: Struts Users Mailing List Subject: Re: OT: OutOfMemory Rechard, I suppose Eric wanna output HTML. I myself prefer css to font tags. Introducing an XSLT engine is a nice idea, h

RE: OT: OutOfMemory

2005-11-29 Thread David G. Friedman
file? > > > > - Original Message - > > From: "netsql" <[EMAIL PROTECTED]> > > To: > > Sent: Sunday, November 27, 2005 10:09 PM > > Subject: Re: OT: OutOfMemory > > > > > > > > > > http://tomc

Re: OT: OutOfMemory

2005-11-28 Thread Chen Jerry
m Java > >>> shouldn't have... > >>> > >>> --- > >>> > >>> I found in my catalina.bat: > >>> set JAVA_OPTS= > >>> Instead of that, use: > >>> set JAVA_OPTS=-XX:MaxPermSize=10m &

Re: OT: OutOfMemory

2005-11-28 Thread Richard Yee
Original Message - From: "netsql" <[EMAIL PROTECTED]> To: Sent: Sunday, November 27, 2005 10:09 PM Subject: Re: OT: OutOfMemory http://tomcat.apache.org/faq/memory.html#adjust Eric Plante wrote: I'm on windows XP and the only catal

Re: OT: OutOfMemory

2005-11-28 Thread Jason Lea
, what am I suppose to do in that file? - Original Message - From: "netsql" <[EMAIL PROTECTED]> To: Sent: Sunday, November 27, 2005 10:09 PM Subject: Re: OT: OutOfMemory http://tomcat.apache.org/faq/memory.html#adjust Eric Plante wrote: I

Re: OT: OutOfMemory

2005-11-28 Thread Chen Jerry
ems only increase max size of heap rather than perm division. > > > > 2005/11/29, Eric Plante <[EMAIL PROTECTED]>: > > > I found the required catalina files and I see 4 lines with the JAVA_OPTS > > > variable. I tried replacing JAVA_OPTS and then %

Re: OT: OutOfMemory

2005-11-28 Thread Eric Plante
> > -Xmx512m seems only increase max size of heap rather than perm division. > > > > > > 2005/11/29, Eric Plante <[EMAIL PROTECTED]>: > > > > I found the required catalina files and I see 4 lines with the > > JAVA_OPTS > > > > variable.

Re: OT: OutOfMemory

2005-11-28 Thread Eric Plante
e of heap rather than perm > division. > > > > > > 2005/11/29, Eric Plante <[EMAIL PROTECTED]>: > > > > I found the required catalina files and I see 4 lines with the > > JAVA_OPTS > > > > variable. I tried replacing JAVA_OPTS and

Re: OT: OutOfMemory

2005-11-28 Thread Chen Jerry
> > set JAVA_OPTS=-XX:MaxPermSize=10m > > > > > > -Xmx512m seems only increase max size of heap rather than perm division. > > > > > > 2005/11/29, Eric Plante <[EMAIL PROTECTED]>: > > > > I found the required catalina files and I see 4 line

Re: OT: OutOfMemory

2005-11-28 Thread Eric Plante
t; > set JAVA_OPTS= > > > Instead of that, use: > > > set JAVA_OPTS=-XX:MaxPermSize=10m > > > > > > -Xmx512m seems only increase max size of heap rather than perm > division. > > > > > > 2005/11/29, Eric Plante <[EMAIL

Re: OT: OutOfMemory

2005-11-28 Thread Yujun Liang
increase max size of heap rather than perm > division. > > > > > > 2005/11/29, Eric Plante <[EMAIL PROTECTED]>: > > > > I found the required catalina files and I see 4 lines with the > > JAVA_OPTS > > > > variable. I trie

Re: OT: OutOfMemory

2005-11-28 Thread Eric Plante
JAVA_OPTS=-XX:MaxPermSize=10m > > > > -Xmx512m seems only increase max size of heap rather than perm division. > > > > 2005/11/29, Eric Plante <[EMAIL PROTECTED]>: > > > I found the required catalina files and I see 4 lines with the > JAVA_OPTS > > > v

Re: OT: OutOfMemory

2005-11-28 Thread Eric Plante
age, what am I suppose > > to do in that file? > > > > - Original Message - > > From: "netsql" <[EMAIL PROTECTED]> > > To: > > Sent: Sunday, November 27, 2005 10:09 PM > > Subject: Re: OT: OutOfMemory > > > > > &

Re: OT: OutOfMemory

2005-11-28 Thread Yujun Liang
axPermSize=10m > > > > -Xmx512m seems only increase max size of heap rather than perm division. > > > > 2005/11/29, Eric Plante <[EMAIL PROTECTED]>: > > > I found the required catalina files and I see 4 lines with the > JAVA_OPTS > > > variab

Re: OT: OutOfMemory

2005-11-28 Thread Eric Plante
> I found the required catalina files and I see 4 lines with the JAVA_OPTS > > variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m > in > > the catalina.bat file but I still get the error message, what am I > suppose > > to do in that file? >

Re: OT: OutOfMemory

2005-11-28 Thread Yujun Liang
ines with the > JAVA_OPTS > > > variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m > > in > > > the catalina.bat file but I still get the error message, what am I > > suppose > > > to do in that file? > > > > > > -

Re: OT: OutOfMemory

2005-11-28 Thread Eric Plante
riginal Message ----- > > From: "netsql" <[EMAIL PROTECTED]> > > To: > > Sent: Sunday, November 27, 2005 10:09 PM > > Subject: Re: OT: OutOfMemory > > > > > > > > > > http://tomcat.apache.org/faq/memory.html#

Re: OT: OutOfMemory

2005-11-28 Thread Chen Jerry
t; variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in > > the catalina.bat file but I still get the error message, what am I suppose > > to do in that file? > > > > - Original Message - > > From: "netsql" <[EMAIL PROTECTED]>

Re: OT: OutOfMemory

2005-11-28 Thread Yujun Liang
gt; in > > the catalina.bat file but I still get the error message, what am I > suppose > > to do in that file? > > > > - Original Message - > > From: "netsql" <[EMAIL PROTECTED]> > > To: > > Sent: Sunday, November 27, 2005 10:

Re: OT: OutOfMemory

2005-11-28 Thread Eric Plante
JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m in > the catalina.bat file but I still get the error message, what am I suppose > to do in that file? > > - Original Message - > From: "netsql" <[EMAIL PROTECTED]> > To: > Sent: Sunday, November 27, 2005 10:09 PM &

Re: OT: OutOfMemory

2005-11-28 Thread Yujun Liang
TS > > variable. I tried replacing JAVA_OPTS and then %JAVA_OPTS% by -Xmx512m > in > > the catalina.bat file but I still get the error message, what am I > suppose > > to do in that file? > > > > - Original Message - > > From: "

Re: OT: OutOfMemory

2005-11-28 Thread Chen Jerry
ent: Sunday, November 27, 2005 10:09 PM > Subject: Re: OT: OutOfMemory > > > > > > http://tomcat.apache.org/faq/memory.html#adjust > > > > > > Eric Plante wrote: > > > I'm on windows XP and the on

Re: OT: OutOfMemory

2005-11-28 Thread Eric Plante
t; <[EMAIL PROTECTED]> To: Sent: Sunday, November 27, 2005 10:09 PM Subject: Re: OT: OutOfMemory > > http://tomcat.apache.org/faq/memory.html#adjust > > > Eric Plante wrote: > > I'm on windows XP and the only catalina files that might serve for > > configura

Re: OT: OutOfMemory

2005-11-27 Thread netsql
http://tomcat.apache.org/faq/memory.html#adjust Eric Plante wrote: I'm on windows XP and the only catalina files that might serve for configuration are Catalina.properties and catalina.policy - To unsubscribe, e-mail: [EM

Re: OT: OutOfMemory

2005-11-27 Thread Chen Jerry
Well, I don't think configuration of properties and policy files helps. But I am not sure. Why not try it out? /bin/catalina.bat is for java options configuration, you can find something like JAVA_OPTS, append -XX:MaxPermSize=10m (10m is my choice in the fly, please replace it with your choice) w

Re: OT: OutOfMemory

2005-11-27 Thread Eric Plante
I'm on windows XP and the only catalina files that might serve for configuration are Catalina.properties and catalina.policy In catalina.properties, there is those lines: tomcat.util.buf.StringCache.byte.enabled=true #tomcat.util.buf.StringCache.char.enabled=true #tomcat.util.buf.StringCache.trai

Re: OT: OutOfMemory

2005-11-27 Thread Eric Plante
Well, since it's a wab appliation, it starts with Tomcat server, not java but anyway, MaxPermSize doesn't seem to exist I tried adding in server.xml but it either didn't work or didn't recognize the property. -- Well, heap size and each division has its defaul

Re: OT: OutOfMemory

2005-11-27 Thread Chen Jerry
if your os is linux and like, it is bin/catalina.sh 2005/11/28, Chen Jerry <[EMAIL PROTECTED]>: > Well, you use tomcat, right? > There is bin/catalina.bat, where you can specify -XX options. > > 2005/11/28, Chen Jerry <[EMAIL PROTECTED]>: > > Well, heap size and each division has its default value

Re: OT: OutOfMemory

2005-11-27 Thread Chen Jerry
Well, you use tomcat, right? There is bin/catalina.bat, where you can specify -XX options. 2005/11/28, Chen Jerry <[EMAIL PROTECTED]>: > Well, heap size and each division has its default value. In fact, they > are specified proper values, such as minimal size, maximal size, > ratio, etc., accordin

Re: OT: OutOfMemory

2005-11-27 Thread Chen Jerry
Well, heap size and each division has its default value. In fact, they are specified proper values, such as minimal size, maximal size, ratio, etc., according to requirement. Did you try customizing memory model of Hotspot at application startup? I suppose your problem can be solved by increase the

Re: OT: OutOfMemory

2005-11-27 Thread Eric Plante
It uses hotspot. I don't append litteral strings but I append substrings of a String object in my StringBuilders. By HD memory I meant physical. If I understand well, there is no solution to my problem, I will always be limited to the heap size? That really troublesome, it should use the physica

Re: OT: OutOfMemory

2005-11-27 Thread Chen Jerry
2005/11/28, Eric Plante <[EMAIL PROTECTED]>: > Thanks > > 1-How do I know if I use hotspot or not? $ java -version > 2-Is StringBuilder using the same heap as String? "xxx" is regard as permniant object. does your StringBuilder leverages sb.append("xxx")? If so, I suppose it is the same to String

Re: OT: OutOfMemory

2005-11-27 Thread Chen Jerry
Well, It's -XX:MaxPermSize option rather than some -X option; you can refer to this link for more information: http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf Regards, Jerry 2005/11/28, Chen Jerry <[EMAIL PROTECTED]>: > Well, I suppose I can offer some tip that may help. > > Let me suppose

Re: OT: OutOfMemory

2005-11-27 Thread Eric Plante
Thanks 1-How do I know if I use hotspot or not? 2-Is StringBuilder using the same heap as String? 3-What if I can't control the size of the Strings since they come from files that can be as big as the HD memory? 4-Is there a way to use the Hard Drive memory instead of the stack? -

Re: OT: OutOfMemory

2005-11-27 Thread Chen Jerry
Well, I suppose I can offer some tip that may help. Let me suppose you use Hotspot VM. Sun's Hotspot VM 's heap space consists of three divisions for young generation, old generation and perminant generation. Young generation refers to objects that are created and usually it died in a short time.