This content has been marked as final.
Show 7 replies
-
1. Re: Problem with Tomcat Native Lib
peterj Jul 24, 2008 11:54 AM (in response to klapcio)Which version of JBossAS?
Which version of JBoss Native?
What operating system and version? -
2. Re: Problem with Tomcat Native Lib
klapcio Jul 25, 2008 4:23 AM (in response to klapcio)"PeterJ" wrote:
Which version of JBossAS?
Which version of JBoss Native?
What operating system and version?
Oh, sorry:
Jboss 4.2.2
JBoss Native: jboss-native-2.0.4-linux2-x86-ssl.tar.gz
OS: Ubuntu server 8.04 (in a virtual box)
and it doesnt hang, it takes very long to start:[Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 49m:21s:689ms
Wohaaa, nearly 1 hour to start JBoss, great ! -
4. Re: Problem with Tomcat Native Lib
klapcio Jul 25, 2008 5:13 AM (in response to klapcio)"jaikiran" wrote:
See these
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=134284
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=134163
These two don't really help me... -
5. Re: Problem with Tomcat Native Lib
klapcio Jul 25, 2008 5:30 AM (in response to klapcio)Solved!!!
The solution is quite simple, I've just added following in my run.sh script:export RANDFILE=/dev/urandom
And now it works as usual (starting in 22 seconds instead of 50 minutes) -
6. Re: Problem with Tomcat Native Lib
peterj Jul 25, 2008 11:33 AM (in response to klapcio)The reason I asked for the info I did was because I have seen this issue before on Linux (as pointed out by the posts mentioned by jaikiran). Unfortunately, as you saw in those posts, there was no known solution.
Did the long pause happen the first time you started JBossAS after a system reboot? My experience has been that the first time jbossas starts just fine but hangs at this point on every subsequent start, until I reboot my system.
How did you come across the RANDFILE setting as a solution? -
7. Re: Problem with Tomcat Native Lib
klapcio Jul 28, 2008 3:35 AM (in response to klapcio)"PeterJ" wrote:
The reason I asked for the info I did was because I have seen this issue before on Linux (as pointed out by the posts mentioned by jaikiran). Unfortunately, as you saw in those posts, there was no known solution.
Yeah, but the pointed thread is useless
Did the long pause happen the first time you started JBossAS after a system reboot? My experience has been that the first time jbossas starts just fine but hangs at this point on every subsequent start, until I reboot my system.
I was rebooting for several times. The shortest time for JBoss start was about 20 minutes. Before the fix.
How did you come across the RANDFILE setting as a solution?
Tomcat native lib uses APR, APR uses SSL - so then ;-)