Command line args affect only watchdog process.
All I had to do is add these lines in resin.conf under <server-default>

<jvm-arg>-Xdebug</jvm-arg>
<jvm-arg>-Xnoagent</jvm-arg>
<jvm-arg>-Djava.compiler=NONE</jvm-arg>
<jvm-arg>-Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=javadebug</jvm-arg>

It's works under Resin 3.1.2 The example is for shmem. You can modify it for socket.

Cheers,
Dragisa


Sergio Fernandez wrote:
Hi,

I'm trying to launch resin 3.1.x to perform remote debug....

I'm using the following paramenters in the httpd.sh

exec $java -Xms128M -Xmx384M -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar $bin/../lib/resin.jar $*


After execute this I obtain a TIMEOUT exception with the following code:

java.net.SocketTimeoutException: Accept timed out
       at java.net.PlainSocketImpl.socketAccept(Native Method)
       at java.net.PlainSocketImpl.accept(Unknown Source)
       at java.net.ServerSocket.implAccept(Unknown Source)
       at java.net.ServerSocket.accept(Unknown Source)
       at com.caucho.boot.ResinWatchdog.run(ResinWatchdog.java:512)
       at java.lang.Thread.run(Unknown Source)
[16:37:51.703] java.net.SocketTimeoutException: Accept timed out
[16:37:51.703]  at java.net.PlainSocketImpl.socketAccept(Native Method)
[16:37:51.703]  at java.net.PlainSocketImpl.accept(Unknown Source)
[16:37:51.703]  at java.net.ServerSocket.implAccept(Unknown Source)
[16:37:51.703]  at java.net.ServerSocket.accept(Unknown Source)
[16:37:51.703] at com.caucho.boot.ResinWatchdog.run(ResinWatchdog.java:512)
[16:37:51.703]  at java.lang.Thread.run(Unknown Source)
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_E
RROR_TRANSPORT_LOAD(196)
ERROR: transport library not found:  dt_socket
ERROR: JDWP Transport  dt_socket failed to initialize, TRANSPORT_LOAD(509)
JDWP exit error AGENT_ERROR_TRANSPORT_LOAD(196): No transports initialized [../.
./../src/share/back/debugInit.c:690]
27-jul-2007 16:37:51 com.caucho.boot.ResinWatchdog run
INFO: Watchdog[] stopping Resin
[16:37:51.812] Watchdog[] stopping Resin


Do you know what I'm doing wrong??
Any clue?

Thanks in advance,

Sergio


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


begin:vcard
fn:Dragisa Krsmanovic
n:Krsmanovic;Dragisa
org:Xpiron Inc.
adr:Suite 400;;582 Market St.;San Francisco;CA;94104;USA
email;internet:[EMAIL PROTECTED]
title:Senior Developer
tel;work:(415) 732-5703
tel;fax:(415) 732-5706
x-mozilla-html:TRUE
url:http://www.xpiron.com
version:2.1
end:vcard

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to