0

Our Java enterprise application(Spring, Hibernate, JSF, JBoss) usually starts for about 1 minute.
We run our application on Windows(SUN/Oracle JDK 1.6) and on AIX(IBM JDK 1.6).
I tried to run it on Linux(16GB, i5) using Sun JDK 1.6.
But by some reason application starts on Linux too long - from 5 to 30 minutes.
I connected to JVM by jvisualvm and tried to analize threaddumps - there are no any bad locks, sleeps, waits, etc.
I changed JDK to IBM JDK 1.6 and now application start for about 4-5 minutes. But it is too long also.
PC is not overloaded.
JBoss without my application starts fast.

What could be wrong?
How can I find what is wrong with my application or linux or PC?

UPDATE:
Server was restarted and this problem disappears.

Volodymyr Bezuglyy
  • 16,295
  • 33
  • 103
  • 133

1 Answers1

0

I've already met simular situtation. Tomcat was began too late (about 3 minutes). I've found problem that OpenJDK is incompatible with powerpc (especially IO operations). So we've changed openJDK with IBMJDK. After that problem was gone. Check your processor type and find compatible jdk.

rayyildiz
  • 338
  • 3
  • 7
  • I am using IBM JDK too. With this JDK application starts for about 4-7 minutes. It is too log. On slow PC with Windows this application starts for about 1 minute. – Volodymyr Bezuglyy Jul 04 '12 at 12:37
  • What is your operating system? Can you confirm for using IBM JDK? – rayyildiz Jul 04 '12 at 13:21
  • Can you add this JVM parameter –Djava.security.egd= file:/dev/./urandom and try again? Also you can look at http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom for more information. – rayyildiz Jul 12 '12 at 13:50
  • I will try it. But there are no any problems with startup time of my application now. – Volodymyr Bezuglyy Jul 13 '12 at 07:41