----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
While I wouldn't characterize memory leaks as "really easy" to commit in
Java (at least in comparison to C/C++), they are certainly possible and not
uncommon. VM defects aside, leaks almost always manifest themselves as
containers of some sort (e.g., Vector) that contain an ever-growing number
of elements. That is, a defect in one's code causes a container to grow
without limit. In fact, certain of the Java libraries have had (and almost
certainly continue to have) such defects, particularly in the AWT/Swing code
(which, as you might imagine, use a lot of "container relationships").
This might sound simple to catch, but if you have a subtle bug that causes a
container to grow slowly, the resultant memory leak might not show up except
under severe load and/or after the program has been run for a relatively
long time.
All of which speaks to the wisdom of writing unit tests, similuated stress
tests and running long-term "uptime" tests throughout development.
David
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Saturday, January 15, 2000 4:41 PM
To: [EMAIL PROTECTED]
Subject: Re: [Fwd: Re: AW: JServ out of memory Problem]
----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Interesting. How do you mean? I thought that one of Java's positive
features was the fact that the garbage collection made it much harder to
leak memory, especially in the code, where it does not have the issues
that for example C++ does with allocating memory.
On Sat, 15 Jan 2000 15:43:38 -0500 Eric Hancock <[EMAIL PROTECTED]>
writes:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
>
> Have someone review your code. It is really easy to leak memory
> with java.
>
> > I have the same problem..running webload crashes the server after
> about 180
> > users,Internal server error with logs showing out of memory
> problem.,I changed
> > the heap size, played with apache directives with no effect.
> > (increasing,timeout directive does allow a few more users to log
> in).,Iam
> > following responses Aaloks case to get more inputs..The database
> is Oracle
> > 8,and have no. of processes running at 200 on it...that was the
> only change I
> > made in the,default init.ora(in case that makes any
> difference).,So help us
> > out apache gurus all around the globe..................
> >
> > -------- Original Message --------
> > Subject: Re: AW: JServ out of memory Problem
> > Date: Thu, 13 Jan 2000 15:49:03 PST
> > From: "Aalok Kaushish" <[EMAIL PROTECTED]>
> > Reply-To: "Java Apache Users"
> <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> >
> > ----------------------------------------------------------------
> > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > WHEN YOU POST, include all relevant version numbers, log files,
> > and configuration files. Don't make us guess your problem!!!
> > ----------------------------------------------------------------
> >
> > Well I was running my servlets without problems until I started
> load testing
> > and got OutOfMemory error and I have another server with same
> configuration
> > and its still running servlets(I didn't ran my crazy scripts on
> it)
> >
> > so then where could be the problem?
> >
> > Aalok
> >
> >
> >> From: Nick Bauman <[EMAIL PROTECTED]>
> >> Reply-To: "Java Apache Users"
> <[EMAIL PROTECTED]>
> >> To: Java Apache Users <[EMAIL PROTECTED]>
> >> Subject: Re: AW: JServ out of memory Problem
> >> Date: Thu, 13 Jan 2000 15:26:54 -0800 (PST)
> >>
> >> ----------------------------------------------------------------
> >> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> >> WHEN YOU POST, include all relevant version numbers, log files,
> >> and configuration files. Don't make us guess your problem!!!
> >> ----------------------------------------------------------------
> >>
> >> This person's config is messed up. This is not a JServ
> >> problem. I can hold my fingers down on the CTRL and R
> >> keys in a browser on the same LAN segment and not
> >> crash the servlet engine on a servlet that does crazy
> >> stuff with Java Beans.
> >>
> >> Plus my company servers over 100,000 hits an hour on a
> >> single servlet without problems. (But JIT is turned
> >> off)
> >>
> >> --- [EMAIL PROTECTED] wrote:
> >>> Aalok,
> >>> Did you reload the Jserv module with the new
> >>> properties file ? What
> >>> do the logs say ?
> >>>
> >>> best regards
> >>>
> >>> Raghu
> >>>
> >>> From:"Aalok Kaushish" <[EMAIL PROTECTED]> on
> >>> 01/13/2000 09:55 PM GMT
> >>>
> >>> Sent by: "Aalok Kaushish" <[EMAIL PROTECTED]>
> >>>
> >>> Please respond to "Java Apache Users"
> >>> <[EMAIL PROTECTED]>
> >>>
> >>>
> >>> To: [EMAIL PROTECTED]
> >>> cc: (bcc: Raghu V Singh/rsingh1/LSU)
> >>>
> >>> Subject: Re: AW: JServ out of memory Problem
> >>>
> >>>
> >>>
> >>
> >>
> >> =====
> >> # Nick Bauman
> >> # Technical Programmer
> >> # http://webhelp.com
> >> # real people, real answers, real time
> >> __________________________________________________
> >> Do You Yahoo!?
> >> Talk to your friends online with Yahoo! Messenger.
> >> http://im.yahoo.com
> >>
> >>
> >> --
> >> --------------------------------------------------------------
> >> Please read the FAQ! <http://java.apache.org/faq/>
> >> To subscribe: [EMAIL PROTECTED]
> >> To unsubscribe: [EMAIL PROTECTED]
> >> Archives and Other: <http://java.apache.org/main/mail.html>
> >> Problems?: [EMAIL PROTECTED]
> >>
> >
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Archives and Other: <http://java.apache.org/main/mail.html>
> > Problems?: [EMAIL PROTECTED]
> >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Archives and Other: <http://java.apache.org/main/mail.html>
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]