Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know this is bit of a Java question, but I feel its more of a network issue.

I have a Suse 11 server that I'd put a simple java program on, I start it up with debug options. Just like I do on any other XP/Win7/Ubuntu machine.

With this Suse11 on VM hardware, I can't get the socket to connect. Some times is does connect, but then its like I never receive any packets.

I'm stumped as to why, there is another Suse11 VM that I can connect to and its fine. I can't see any differences between them (Expect they are on different subnets, although I've been assured by the Network dept that this makes no difference)

Can anyone give me some advice, or things that I can check.

Thanks Jeff

It appears that Websphere 7 / JDK 1.6 requires the port to be set to "" not just "7777". This allows the port to be open outside the current machine.

This has now solved my problem.

Thanks for all the help.

Jeff Porter

share|improve this question
Which java-version? What options do you use for java? SLES11 SP1 or SP2? This smells like a network problem. Use wireshark while you connect to java. Does it show IP drops or other problems? – Nils Mar 8 '12 at 21:40
sudo netstat -lpd , do you see the Jmx application bound to the java jmx port? is it LISTENING? and what interface is it bound to? or or something else? – The Unix Janitor Mar 8 '12 at 23:37

By default Sles Linux does not expose a port outside the box.

So by setting the debug port in WS to 7777 via the webpage(IBM/console) only exposes the port internally to the box. To expose it you need to enter “”, but the web page does not allow this as a value.

So to change it by hand go to this file on the box...


Then replace 7777 with in the file. (there are 3 places to change this in the file)

 <services xmi:type="debugservice:DebugService" 
 xmi:id="DebugService_1331818723840" enable="true" 
 BSFDebugPort="4444" BSFLoggingLevel="0"/>
 <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" 
 verboseModeClass="false" verboseModeGarbageCollection="false" 
 verboseModeJNI="false" maximumHeapSize="1024" runHProf="false" 
 hprofArguments="" debugMode="true" 

Then stop and start the server.

/opt/IBM/WebSphere/AppServer/bin # ./ server1


/opt/IBM/WebSphere/AppServer/bin # ./ server1

You can now connect a debugger to the machine!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.