Re: Out of memory
Re: Out of memory
- Subject: Re: Out of memory
- From: René Bock <email@hidden>
- Date: Wed, 28 Nov 2007 17:34:48 +0100
Am 28.11.2007 um 14:38 schrieb Miguel Arroz:
Hi!
I'm having an Out of memory exception (and consequently
application death) that I can't figure out why it happens. I
suspect it's because I'm assuming something about the WO behaviour
that is not correct (as usual).
The problem is this: I have an action that creates some test
data. Depending on the parameters I feed on the page, it may create
many many objects (50k, or more). Of course, this takes time, and
the request will at some point hang (ie, the browser gets an error
from the adaptor) but I don't care, as this is used only during
testing.
I suppose you gave enough heap space to the java VM (max 2GB). Per
default, the heap size grows exponentially. To make the VM less
greedy, I start my apps with
-Xms256m -Xmx2048m -XX:NewSize=128m -XX:MaxNewSize=128m
Mit freundlichem Gruß,
René Bock
Software Engineering
--
Salient GmbH - the interactive advantage
Kontorhaus - Lindleystraße 12, 60314 Frankfurt Main
Fon +49 (0)69 - 650096 -0, Durchwahl: - 18, Fax: -70
http://www.salient.de http://www.openforms.de
Geschäftsführer: Peter Biler, Alexander Gerling, Lars Ohlerich
Amtsgericht Frankfurt Main, HRB 48693
+++ salient gewinnt den IF Design-Award 2007 +++
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden