Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 6159 invoked by uid 500); 23 Mar 2001 17:03:37 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: tomcat-dev@jakarta.apache.org Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 6128 invoked from network); 23 Mar 2001 17:03:36 -0000 Message-ID: From: "Parayali, Jayesh 1065" To: "'tomcat-dev@jakarta.apache.org'" Subject: RE: java.lang.OutOfMemoryError Date: Fri, 23 Mar 2001 09:02:54 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0B3BB.19DBB7E0" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0B3BB.19DBB7E0 Content-Type: text/plain StringWriter wraps StringBuffer. So you are using StringBuffer. > -----Original Message----- > From: chu luk [SMTP:ulukb00us@yahoo.com] > Sent: Thursday, March 22, 2001 6:26 PM > To: tomcat-dev@jakarta.apache.org > Subject: RE: java.lang.OutOfMemoryError > > i am not doing a whole lot of contatenation, but i do > use stringWriter --> is it the same as stringBuffer? > thanks > > > --- "Parayali, Jayesh 1065" > wrote: > > Here is one suggestion. > > Use StringBuffer instead of String if you are doing > > string contatenation. > > > > > -----Original Message----- > > > From: chu luk [SMTP:ulukb00us@yahoo.com] > > > Sent: Thursday, March 22, 2001 5:17 PM > > > To: tomcat-dev@jakarta.apache.org > > > Subject: java.lang.OutOfMemoryError > > > > > > Hi, > > > I have a servlet listens for HTTP POST request. > > then > > > query the oracle database and response --> request > > / > > > response are XML. > > > > > > I had 10 Load Test client keep sending HTTP > > request to > > > servlet as fast as they can --> for 10 hours > > > > > > But within 10 hours, all the response are OK, > > except i > > > got a couple of servlet internal error says "Out > > of > > > Memory" for some of the client. > > > > > > Error: 500 > > > Location: /test/server > > > Internal Servlet Error: > > > java.lang.OutOfMemoryError > > > > > > Do I have a memory leak? or that means too > > servlet is > > > overLoad? or Any thing cause this error? Is this > > a > > > common error? I believe my servlet's memeory > > > requirement is not that big. but i had at least > > 100 > > > String object in it. > > > > > > thanks. > > > > > > P.S, my Config is: > > > oracle 8.1.6 > > > tomcat 3.2 > > > apache 1.3.17 > > > Sun OS 5.6 > > > use HTTP / XML for request / response > > > average run time / request = 500 milli - second > > > # of client = 10 > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Get email at your own domain with Yahoo! Mail. > > > http://personal.mail.yahoo.com/ > > > > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ ------_=_NextPart_001_01C0B3BB.19DBB7E0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: java.lang.OutOfMemoryError

StringWriter wraps = StringBuffer. So you are using StringBuffer.

    -----Original Message-----
    From:   chu luk [SMTP:ulukb00us@yahoo.com]
    Sent:   Thursday, March 22, 2001 6:26 PM
    To:     tomcat-dev@jakarta.apache.org
    Subject:       = RE: = java.lang.OutOfMemoryError

    i am not doing a whole lot of = contatenation, but i do
    use stringWriter --> is it the = same as stringBuffer?
    thanks


    --- "Parayali, = Jayesh     1065"
    <Jayesh.Parayali@acefis.com> = wrote:
    > Here is one suggestion.
    > Use StringBuffer instead of = String if you are doing
    > string contatenation.
    >
    > > -----Original = Message-----
    > > = From:       chu luk = [SMTP:ulukb00us@yahoo.com]
    > > = Sent:       Thursday, March 22, 2001 5:17 = PM
    > > To: = tomcat-dev@jakarta.apache.org
    > > Subject:    = java.lang.OutOfMemoryError
    > >
    > > Hi,
    > > I have a servlet listens = for HTTP POST request.
    > then
    > > query the oracle database = and response --> request
    > /
    > > response are XML.  =
    > >
    > > I had 10 Load Test client = keep sending HTTP
    > request to
    > > servlet as fast as they can = --> for 10 hours
    > >
    > > But within 10 hours, all = the response are OK,
    > except i
    > > got a couple of servlet = internal error says "Out
    > of
    > > Memory" for some of = the client.
    > >
    > > Error: 500
    > > Location: = /test/server
    > > Internal Servlet = Error:
    > > java.lang.OutOfMemoryError =
    > >
    > > Do I have a memory = leak?  or that means too
    > servlet is
    > > overLoad?  or Any = thing cause this error? Is this
    > a
    > > common error? I believe my = servlet's memeory
    > > requirement is not that = big. but i had at least
    > 100
    > > String object in it.
    > >
    > > thanks.
    > >
    > > P.S, my Config is:
    > > oracle 8.1.6
    > > tomcat 3.2
    > > apache 1.3.17
    > > Sun OS 5.6
    > > use HTTP / XML for request = / response
    > > average run time / request = =3D 500 milli - second
    > > # of client =3D 10
    > >
    > >
    > > = __________________________________________________
    > > Do You Yahoo!?
    > > Get email at your own = domain with Yahoo! Mail.
    > > http://personal.mail.yahoo.com/
    >


    __________________________________________________=
    Do You Yahoo!?
    Get email at your own domain with = Yahoo! Mail.
    http://personal.mail.yahoo.com/

------_=_NextPart_001_01C0B3BB.19DBB7E0--