Forum Home » Enterprise Products » Fuse Management Console

Thread: Remote Debugging?

 
This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Aug 10, 2012 8:10 PM Last Post By: hendelc
hendelc

Posts: 4
Registered: 07/25/12
Remote Debugging?
Posted: Aug 3, 2012 6:33 PM
 
  Click to reply to this thread Reply
I am trying to setup remote debugging for a child container using fuse-fabric-7.0.0.fuse-061, the documentation states there is an "enable remote debugging" checkbox but using fmc-1.0.0.fuse-00-061 I do not see that checkbox anywhere, only the JVM options.

I also tried to use the JVM options, but the process still does not show any of my options once the container is started. Same thing goes if I use the command line:
container-create --parent FuseManagementConsole --profile cxf --jvm-opts "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" cxf1

Nowhere does the java process show the command line with my params.

Any help in getting remote debugging set up would be appreciated.

--Christian
slewis

Posts: 235
Registered: 01/12/08
Re: Remote Debugging?
Posted: Aug 10, 2012 12:43 PM   in response to: hendelc in response to: hendelc
 
  Click to reply to this thread Reply
Yup, this is a known issue (FABRIC-123) that should be fixed in the next release.
hendelc

Posts: 4
Registered: 07/25/12
Re: Remote Debugging?
Posted: Aug 10, 2012 4:52 PM   in response to: slewis in response to: slewis
 
  Click to reply to this thread Reply
Thanks,
Any chance of a date for the next release?

--Christian
hendelc

Posts: 4
Registered: 07/25/12
Re: Remote Debugging?
Posted: Aug 10, 2012 8:10 PM   in response to: hendelc in response to: hendelc
 
  Click to reply to this thread Reply
Nevermind I looked at the source and found a workaround:
Prefix the jvm-opts with "-Xmx" and then the size you want (512m) etc and then all of your extra JVM options, debugging et al.

code snippet (ChildContainerProvider:75) :
if (options.getJvmOpts() == null || !options.getJvmOpts().contains("-Xmx")) {
jvmOptsBuilder.append(" -Xmx512m");
} else if (options.getJvmOpts() != null) {
jvmOptsBuilder.append(" ").append(options.getJvmOpts());
}

--Christian