; From: Jim Barrows
>> To: liftweb@googlegroups.com
>> Sent: Wed, Feb 3, 2010 14:52:47 GMT+00:00
>> Subject: Re: [Lift] Handle OOM
>>
>> On Tue, Feb 2, 2010 at 9:18 PM, David Pollak
>> wrote:
>>
>>>
>>>
>>> On Tue, Feb 2, 2010 at 5:
I've
> gotta get below 30 unread email messages before I finish it (probably late
> Feb)
>
> Connected by MOTOBLURâ„¢ on T-Mobile
>
> -Original message-
> From: Jim Barrows
> To: liftweb@googlegroups.com
> Sent: Wed, Feb 3, 2010 14:52:47 GMT+00:00
> Subje
al message-
From: Jim Barrows
To: liftweb@googlegroups.com
Sent: Wed, Feb 3, 2010 14:52:47 GMT+00:00
Subject: Re: [Lift] Handle OOM
On Tue, Feb 2, 2010 at 9:18 PM, David Pollak
wrote:
>
>
> On Tue, Feb 2, 2010 at 5:49 PM, Naftoli Gugenheim wrote:
>
>> Hmm... Can the code catch the ex
0 14:52:47 GMT+00:00
Subject: Re: [Lift] Handle OOM
On Tue, Feb 2, 2010 at 9:18 PM, David Pollak
wrote:
>
>
> On Tue, Feb 2, 2010 at 5:49 PM, Naftoli Gugenheim wrote:
>
>> Hmm... Can the code catch the exception and try to execute a script that
>> restarts it? :)
>
&
On Tue, Feb 2, 2010 at 9:18 PM, David Pollak
wrote:
>
>
> On Tue, Feb 2, 2010 at 5:49 PM, Naftoli Gugenheim wrote:
>
>> Hmm... Can the code catch the exception and try to execute a script that
>> restarts it? :)
>
>
> The Sun JVM has the following flag:
>
> -XX:OnOutOfMemoryError="script_to_execu
Jim Barrows writes:
> That would require memory allocation etc to do so. Which is of course, a
> problem at this point.
But you can allocate some "baloon" memory at startup and free this on
the OOM if you must do some cleanup in the app. I've not used this in a
multi threaded server setting so
Neat! Thanks!
On Tue, Feb 2, 2010 at 11:18 PM, David Pollak wrote:
>
>
> On Tue, Feb 2, 2010 at 5:49 PM, Naftoli Gugenheim wrote:
>
>> Hmm... Can the code catch the exception and try to execute a script that
>> restarts it? :)
>
>
> The Sun JVM has the following flag:
>
> -XX:OnOutOfMemoryError
On Tue, Feb 2, 2010 at 5:49 PM, Naftoli Gugenheim wrote:
> Hmm... Can the code catch the exception and try to execute a script that
> restarts it? :)
The Sun JVM has the following flag:
-XX:OnOutOfMemoryError="script_to_execute"
This will allow an auto-restart.
>
>
> On Tue, Feb 2, 2010 at
That would require memory allocation etc to do so. Which is of course, a
problem at this point.
On Tue, Feb 2, 2010 at 6:49 PM, Naftoli Gugenheim wrote:
> Hmm... Can the code catch the exception and try to execute a script that
> restarts it? :)
>
> On Tue, Feb 2, 2010 at 8:43 PM, Jim Barrows
Hmm... Can the code catch the exception and try to execute a script that
restarts it? :)
On Tue, Feb 2, 2010 at 8:43 PM, Jim Barrows wrote:
> Not generally within your code no. The VM is out of memory, not the
> webapp, so the VM has to be restarted. However you could have a nagios
> other mon
Not generally within your code no. The VM is out of memory, not the webapp,
so the VM has to be restarted. However you could have a nagios other
monitoring service auto-restart in such cases.
On the other hand... you really shouldn't be getting a OOM error in
Java...
On Tue, Feb 2, 2010 at 5
Is there any way to have a webapp handle an out of memory exception
semi-gracefully? E.g., release session, restart, something other than having to
ssh into the server?
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email
12 matches
Mail list logo