java.lang.OutOfMemoryError: GC overhead limit exceeded

OpenFire Error: Unrecognized Windows Sockets error: 0: JVM_Bind

23. November 2010 09:57 by Scott in   //  Tags:   //   Comments (0)

Got this Error when installing and Starting up OpenFire for the first time with the new Beta release of Openfire 3.7.0.

The Error:

Could not listen on port: 5229
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at org.jivesoftware.openfire.FlashCrossDomainHandler.startServer(FlashCrossDomainHandler.java:101)
    at org.jivesoftware.openfire.FlashCrossDomainHandler.access$000(FlashCrossDomainHandler.java:36)
    at org.jivesoftware.openfire.FlashCrossDomainHandler$1.run(FlashCrossDomainHandler.java:58)
    at java.lang.Thread.run(Unknown Source)

The Fix:

I had to figure out what was already bound to that Port and shut the service down. 

So to figure out what port to release

  1. type 'Netstat -a -n -o' on your command prompt
  2. Note the PID corresponds to the port which you want to release
  3. type the command 'tasklist /svc /FI "PID eq <THEPID>”’
  4. Note the task name listed on command prompt (below Image name)
  5. Kill that task from taskmanager

Hope It helps someone