IDEA 5.0.2, Linux 2.6 and JDK 1.5.0_04 (not starting)

Hello all,

I have IDEA running fine with a 1.4.2 JVM on a Suse 9.3 system. But if I try
to use a 1.5.0 JVM to run IDEA itself, then the process
hangs on startup. I can turn on -XX:+PrintCompilation and
I see that after 30 methods, even that comes to a stop.

Any ideas would be greatly appreciated.

Ctrl\ on the box gives these threads:

Full thread dump Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode):

"Lock thread" prio=1 tid=0x081fe828 nid=0x35ef runnable
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
- locked ]]> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at com.intellij.idea.SocketLock$MyRunnable.run(SocketLock.java)
at java.lang.Thread.run(Thread.java:595)

"DestroyJavaVM" prio=1 tid=0x0805bbe0 nid=0x35e1 waiting on condition

"Idea Main Thread" prio=1 tid=0x081d4bc0 nid=0x35ee runnable
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:307)
at java.io.DataInputStream.readUTF(DataInputStream.java:545)
at java.io.DataInputStream.readUTF(DataInputStream.java:522)
at com.intellij.idea.SocketLock.a(SocketLock.java:66)
at com.intellij.idea.SocketLock.lock(SocketLock.java:30)
- locked (a com.intellij.idea.SocketLock) at com.intellij.idea.Main.lockSystemFolders(Main.java:26) - locked <0x51bdb3f8>]]> (a java.lang.Class)
at com.intellij.idea.Main.checkStartupPossible(Main.java:10)
at com.intellij.idea.Main.start(Main.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:3)
at java.lang.Thread.run(Thread.java:595)

"Low Memory Detector" daemon prio=1 tid=0x080c6170 nid=0x35ec runnable

"CompilerThread0" daemon prio=1 tid=0x080c4c20 nid=0x35eb waiting on condition

"Signal Dispatcher" daemon prio=1 tid=0x080c3d88 nid=0x35ea runnable

"Finalizer" daemon prio=1 tid=0x080b8718 nid=0x35e9 in Object.wait()
at java.lang.Object.wait(Native Method)
- waiting on (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x45970848>]]> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=1 tid=0x080b7a78 nid=0x35e8 in Object.wait()
at java.lang.Object.wait(Native Method)
- waiting on (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:474) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked <0x45970758>]]> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=1 tid=0x080b4e58 nid=0x35e7 runnable

"VM Periodic Task Thread" prio=1 tid=0x080c7600 nid=0x35ed waiting on condition

1 comment

The problem was obviously a networking issue with localhost.

Add this to the vmoptions file and all is well.
-Djava.net.preferIPv6Addresses=true

Yes, our linux boxes all have ipv6 enabled.


0

Please sign in to leave a comment.