> The problem is that one of the apps continiously just"disappears" with
> no sysout or syserr message to find out what happened.
> [...]
> I know 32MB is very small for a heap, but its what I've manage to come
> to get at least one of the apps to run more than 24 hours without just
> disppearing. Anything larger and they both disappear within hours.
So if you set the heap size LARGER, the application halts sooner? That
seems quite odd. Are you certain the behaviour is linked to heap size
rather than being coincidental?
I'm just brainstorming here, but you might gain some information by using
Runtime.getRuntime().addShutdownHook() to call a thread at shutdown that
contains a call to Thread.getAllStackTraces(). Dumping those might give you
some idea what's happening at the point your application exits. Then again,
you might just see some useless shutdown calls. I've never tried this.
I'm wondering if something weird is happening with your JVM or if your
application is exiting because it's unexpectedly reaching the end of its
thread(s).
> I'm running MySQL on the same box, checking top now shows that its'
> only taking about 36M after running for weeks. 512MB should be big
> enough to run these 3 things, right? Whats killing me is the lack of
> information.
512MB should be fine to run a MySQL server and two Java processes with 32MB
of heap each.
Ed Mittelstedt - 29 Jun 2006 15:21 GMT
>I'm just brainstorming here, but you might gain some information by using
>Runtime.getRuntime().addShutdownHook() to call a thread at shutdown that
>contains a call to Thread.getAllStackTraces(). Dumping those might give you
>some idea what's happening at the point your application exits. Then again,
>you might just see some useless shutdown calls. I've never tried this.
Fergus, thanks for the reply! I'll try this immediately and let you
know.
Ed Mittelstedt
CCG Workshop
http://www.ccgworkshop.com