If I get a connection from a DataSource and isClosed() == true, should I A) call conn.close() B) set conn=null, C) call conn.close() then set conn=null, or D) leave conn alone and handle the problem myself? Option 'C' seems like the right thing to do but it logs a exception into the log file and I'm not sure if everything is being handled correctly from that point out. Currently, I do C then go tray again (which usually works) and throw an exception if it fails the 2nd time. Database is Sybase SQLAnywhere 5.5 using JConnect 5.5 on JBoss 2.4.6 w/ Tomcat 4.0.3.
Thanks,
John
-----Original Message-----
From: Claudio Miranda [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 28, 2002 8:10 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Restart JBoss After Out of Memory
Hello Hunter,
Are you using jdk1.3.1_03 with
-server enabled ?
Your machine is SMP ?
Didi you configured some OS
parameters (ulimit, file-max) ?
I experimented RH 7.2 (4GB RAM, but
sun jdk scales util 2GB - very poor),
jdk1.3.1_02 -server, SMP, JBoss 2.4.6,
without OS parameters customized, and
after 5 min, my JBoss freezed, this
happened 3 consecutive times. Then I
switched back to -client JDK parameter.
In run.sh script, I don't known why,
but the hotspot test, doesn't enable
-server.
Claudio Miranda
> From: Hunter Hillegas
> Subject: [JBoss-user] Restart JBoss
After Out of Memory
> Date: Thu, 27 Jun 2002 13:41:46 -0700
>
> Every once and awhile my JBoss 3.0
(Red Hat 7.2 / Sun 1.3.1_03 JVM)
> server will die. I assume that it is
running out of memory.
>
> We specify up to 800MB of RAM at
JBoss start up... Our applications
> get tons and tons of hits. I need to
profile our app in JBoss and see
> where memory is leaking...
>
> In the meantime, I'm wondering if
anyone has developed a script of
> daemon that would restart JBoss if
it died? Anyone done anything like
> that?
>
> Hunter
---
UOL na Copa 2002 - As principais not�cias est�o em UOL Esporte
http://esporte.uol.com.br/copa/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
