|
From: Richard E. <rem...@ed...> - 2006-05-03 17:13:33
|
I set the log file name to: wrapper.logfile=../log/app.wrapper.YYYYMMDD-ROLLNUM.log and the role mode to: wrapper.logfile.rollmode=SIZE_OR_WRAPPER What I get is the current log file is called: app.wrapper.log and all rolled log files are: app.wrapper-1.log app.wrapper-2.log .... app.wrapper-35.log which is not what I expected or hoped for. What I would like is for each rolled log file to have the date in its name and if there might happen to be two log files for the given date, then and only then is the rollnumber part of the name. Thanks Richard -- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. |
|
From: Chandra P. <cp...@ig...> - 2006-05-05 18:41:44
|
It prints out version by default with -? and no option. But it would be nice to have explicit -version. |
|
From: Chandra P. <cp...@ig...> - 2006-05-09 23:50:21
|
I started my JVM with -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 and attached IDE debugger. Blocked a JSP thread on a breakpoint. The wrapper restarts/shuts down (depending on wrapper.disable_restarts=TRUE) the VM. ERROR | wrapper | 2006/05/09 16:35:02 | JVM appears hung: Timed out waiting for signal from JVM. ERROR | wrapper | 2006/05/09 16:35:02 | JVM did not exit on request, terminated STATUS | wrapper | 2006/05/09 16:35:03 | JVM Restarts disabled. Shutting down. STATUS | wrapper | 2006/05/09 16:35:03 | <-- Wrapper Stopped I can set the wrapper.ping.timeout to zero to avoid this. Shouldn't wrapper should detect debug mode? |
|
From: Leif M. <le...@ta...> - 2006-05-10 01:53:19
|
Chandra, I'm not sure of any way to let the Wrapper know that the JVM is paused due to debug mode. You would not want to disable the ping timeout simply because debug was enabled. I should add a note about this or maybe make the Wrapper provide some additional info if the command line contains -Xdebug. Setting wrapper.ping.timeout to 0 should solve the problem for you however. Cheers, Leif Chandra Patni wrote: > I started my JVM with > -Xdebug -Xnoagent -Djava.compiler=NONE > -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 > > and attached IDE debugger. Blocked a JSP thread on a breakpoint. The > wrapper restarts/shuts down (depending on > wrapper.disable_restarts=TRUE) the VM. > > > ERROR | wrapper | 2006/05/09 16:35:02 | JVM appears hung: Timed out > waiting for signal from JVM. > ERROR | wrapper | 2006/05/09 16:35:02 | JVM did not exit on request, > terminated > STATUS | wrapper | 2006/05/09 16:35:03 | JVM Restarts disabled. > Shutting down. > STATUS | wrapper | 2006/05/09 16:35:03 | <-- Wrapper Stopped > > I can set the wrapper.ping.timeout to zero to avoid this. Shouldn't > wrapper should detect debug mode? > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Chandra P. <cp...@ig...> - 2006-05-11 16:34:11
|
I think wrapper should set ping timeout to zero if -Xdebug and -Xrunjdwp .... option is set for JVMDI supporting VMs. And print out this as warning. It should also do the same when -agentlib:jdwp... option is set for newer JVMTI supporting VMs. Otherwise, it will always result in surprised user. Leif Mortenson wrote: > Chandra, > I'm not sure of any way to let the Wrapper know that the JVM is paused > due to > debug mode. You would not want to disable the ping timeout simply because > debug was enabled. I should add a note about this or maybe make the > Wrapper > provide some additional info if the command line contains -Xdebug. Setting > wrapper.ping.timeout to 0 should solve the problem for you however. > > Cheers, > Leif > > Chandra Patni wrote: > >> I started my JVM with >> -Xdebug -Xnoagent -Djava.compiler=NONE >> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 >> >> and attached IDE debugger. Blocked a JSP thread on a breakpoint. The >> wrapper restarts/shuts down (depending on >> wrapper.disable_restarts=TRUE) the VM. >> >> >> ERROR | wrapper | 2006/05/09 16:35:02 | JVM appears hung: Timed out >> waiting for signal from JVM. >> ERROR | wrapper | 2006/05/09 16:35:02 | JVM did not exit on request, >> terminated >> STATUS | wrapper | 2006/05/09 16:35:03 | JVM Restarts disabled. >> Shutting down. >> STATUS | wrapper | 2006/05/09 16:35:03 | <-- Wrapper Stopped >> >> I can set the wrapper.ping.timeout to zero to avoid this. Shouldn't >> wrapper should detect debug mode? >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: <da...@sm...> - 2006-05-11 17:40:16
|
I agree and disagree. I don't think the wrapper should set its ping to =20 0 if debug is set, but I do think it should not restart when debug is =20 set. Maybe record in in the log file that it timed out, but due to =20 debug existing, the application won't be restarted, unless there is =20 some super-sexy way of finding out from the debugged application that =20 the wrapper thread (and others depending upon the debugger that =20 connects to it) has been debug paused. My thoughts at least! Cheers again Leif! Quoting Chandra Patni <cp...@ig...>: > I think wrapper should set ping timeout to zero if -Xdebug and > -Xrunjdwp .... option is set for JVMDI supporting VMs. And print out > this as warning. It should also do the same when -agentlib:jdwp... > option is set for newer JVMTI supporting VMs. Otherwise, it will always > result in surprised user. > > > > Leif Mortenson wrote: >> Chandra, >> I'm not sure of any way to let the Wrapper know that the JVM is =20 >> paused due to >> debug mode. You would not want to disable the ping timeout simply becaus= e >> debug was enabled. I should add a note about this or maybe make =20 >> the Wrapper >> provide some additional info if the command line contains -Xdebug. Setti= ng >> wrapper.ping.timeout to 0 should solve the problem for you however. >> >> Cheers, >> Leif >> >> Chandra Patni wrote: >> >>> I started my JVM with >>> -Xdebug -Xnoagent -Djava.compiler=3DNONE =20 >>> -Xrunjdwp:transport=3Ddt_socket,server=3Dy,suspend=3Dn,address=3D5005 >>> >>> and attached IDE debugger. Blocked a JSP thread on a breakpoint. =20 >>> The wrapper restarts/shuts down (depending on =20 >>> wrapper.disable_restarts=3DTRUE) the VM. >>> >>> >>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM appears hung: Timed =20 >>> out waiting for signal from JVM. >>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM did not exit on =20 >>> request, terminated >>> STATUS | wrapper | 2006/05/09 16:35:03 | JVM Restarts disabled. =20 >>> Shutting down. >>> STATUS | wrapper | 2006/05/09 16:35:03 | <-- Wrapper Stopped >>> >>> I can set the wrapper.ping.timeout to zero to avoid this. =20 >>> Shouldn't wrapper should detect debug mode? >>> >>> >>> >>> ------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, security= ? >>> Get stuff done quickly with pre-integrated technology to make your =20 >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geroni= mo >>> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 >>> _______________________________________________ >>> Wrapper-user mailing list >>> Wra...@li... >>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>> >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your =20 >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o >> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job eas= ier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Chandra P. <cp...@ig...> - 2006-05-11 18:12:50
|
I see how your proposal is more compliant and semantically correct than mine which is in the spirit of 'benevolent dictatorship'. Either way, it would be nice to have nice debugging experience. da...@sm... wrote: > I agree and disagree. I don't think the wrapper should set its ping to > 0 if debug is set, but I do think it should not restart when debug is > set. Maybe record in in the log file that it timed out, but due to > debug existing, the application won't be restarted, unless there is > some super-sexy way of finding out from the debugged application that > the wrapper thread (and others depending upon the debugger that > connects to it) has been debug paused. > > My thoughts at least! > > Cheers again Leif! > > Quoting Chandra Patni <cp...@ig...>: > >> I think wrapper should set ping timeout to zero if -Xdebug and >> -Xrunjdwp .... option is set for JVMDI supporting VMs. And print out >> this as warning. It should also do the same when -agentlib:jdwp... >> option is set for newer JVMTI supporting VMs. Otherwise, it will always >> result in surprised user. >> >> >> >> Leif Mortenson wrote: >> >>> Chandra, >>> I'm not sure of any way to let the Wrapper know that the JVM is >>> paused due to >>> debug mode. You would not want to disable the ping timeout simply >>> because >>> debug was enabled. I should add a note about this or maybe make >>> the Wrapper >>> provide some additional info if the command line contains -Xdebug. >>> Setting >>> wrapper.ping.timeout to 0 should solve the problem for you however. >>> >>> Cheers, >>> Leif >>> >>> Chandra Patni wrote: >>> >>>> I started my JVM with >>>> -Xdebug -Xnoagent -Djava.compiler=NONE >>>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 >>>> >>>> and attached IDE debugger. Blocked a JSP thread on a breakpoint. >>>> The wrapper restarts/shuts down (depending on >>>> wrapper.disable_restarts=TRUE) the VM. >>>> >>>> >>>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM appears hung: Timed >>>> out waiting for signal from JVM. >>>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM did not exit on >>>> request, terminated >>>> STATUS | wrapper | 2006/05/09 16:35:03 | JVM Restarts disabled. >>>> Shutting down. >>>> STATUS | wrapper | 2006/05/09 16:35:03 | <-- Wrapper Stopped >>>> >>>> I can set the wrapper.ping.timeout to zero to avoid this. >>>> Shouldn't wrapper should detect debug mode? >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> Using Tomcat but need to do more? Need to support web services, >>>> security? >>>> Get stuff done quickly with pre-integrated technology to make your >>>> job easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>> Geronimo >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> >>>> _______________________________________________ >>>> Wrapper-user mailing list >>>> Wra...@li... >>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> Wrapper-user mailing list >>> Wra...@li... >>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Leif M. <le...@ta...> - 2006-05-11 02:30:25
|
Chandra,
It was easy to implement so this will be in the next release.
3.2.1 has some other enhancements to the command line as well. You
will be able to run either "wrapper -v" or "wrapper --version" on both
Windows and UNIX versions.
Cheers,
Leif
Chandra Patni wrote:
> It prints out version by default with -? and no option. But it would
> be nice to have explicit -version.
|
|
From: Leif M. <le...@ta...> - 2006-05-10 14:53:24
|
Richard, Sorry it doesn't work that way currently. If you want the date to show up, you have to set the the rollmode to DATE. http://wrapper.tanukisoftware.org/doc/english/prop-logfile-rollmode.html You will get exactly one file per day this way. Days with no output will not be created. Cheers, Leif Richard Emberson wrote: > > I set the log file name to: > > wrapper.logfile=../log/app.wrapper.YYYYMMDD-ROLLNUM.log > > and the role mode to: > > wrapper.logfile.rollmode=SIZE_OR_WRAPPER > > What I get is the current log file is called: > > app.wrapper.log > > and all rolled log files are: > > app.wrapper-1.log > app.wrapper-2.log > .... > app.wrapper-35.log > > > which is not what I expected or hoped for. What I would like is > for each rolled log file to have the date in its name and > if there might happen to be two log files for the given date, then > and only then is the rollnumber part of the name. > > Thanks > > Richard > > > > |
|
From: Leif M. <le...@ta...> - 2006-05-17 07:46:52
|
Chandra, David,
I made some changes for the 3.2.1 release.
The wrapper will now enter a "DebugJVM" mode if the
wrapper.java.command ends
in "jdb" or "jdb.exe", or the "-Xdebug" argument is passed to the JVM.
When operating in the "DebugJVM" mode, a warning will be displayed
on JVM launch
if any of the timeouts are not set to 0. The warning warns that the
ability to detect and
restart a frozen JVM will be disabled.
Then if a timeout does occur, it will be ignored. But the first
such timeout will cause
another warning to be displayed to the user stating which timeout was
encountered and
saying that it may be caused by a debugger having suspended the JVM.
Does this make everyone happy?
Cheers,
Leif
Chandra Patni wrote:
> I see how your proposal is more compliant and semantically correct
> than mine which is in the spirit of 'benevolent dictatorship'. Either
> way, it would be nice to have nice debugging experience.
>
>
>
> da...@sm... wrote:
>> I agree and disagree. I don't think the wrapper should set its ping
>> to 0 if debug is set, but I do think it should not restart when
>> debug is set. Maybe record in in the log file that it timed out, but
>> due to debug existing, the application won't be restarted, unless
>> there is some super-sexy way of finding out from the debugged
>> application that the wrapper thread (and others depending upon the
>> debugger that connects to it) has been debug paused.
>>
>> My thoughts at least!
>>
>> Cheers again Leif!
>>
>> Quoting Chandra Patni <cp...@ig...>:
>>
>>> I think wrapper should set ping timeout to zero if -Xdebug and
>>> -Xrunjdwp .... option is set for JVMDI supporting VMs. And print out
>>> this as warning. It should also do the same when -agentlib:jdwp...
>>> option is set for newer JVMTI supporting VMs. Otherwise, it will always
>>> result in surprised user.
>>>
>>>
>>>
>>> Leif Mortenson wrote:
>>>
>>>> Chandra,
>>>> I'm not sure of any way to let the Wrapper know that the JVM is
>>>> paused due to
>>>> debug mode. You would not want to disable the ping timeout simply
>>>> because
>>>> debug was enabled. I should add a note about this or maybe
>>>> make the Wrapper
>>>> provide some additional info if the command line contains -Xdebug.
>>>> Setting
>>>> wrapper.ping.timeout to 0 should solve the problem for you however.
>>>>
>>>> Cheers,
>>>> Leif
>>>>
>>>> Chandra Patni wrote:
>>>>
>>>>> I started my JVM with
>>>>> -Xdebug -Xnoagent -Djava.compiler=NONE
>>>>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
>>>>>
>>>>> and attached IDE debugger. Blocked a JSP thread on a breakpoint.
>>>>> The wrapper restarts/shuts down (depending on
>>>>> wrapper.disable_restarts=TRUE) the VM.
>>>>>
>>>>>
>>>>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM appears hung:
>>>>> Timed out waiting for signal from JVM.
>>>>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM did not exit on
>>>>> request, terminated
>>>>> STATUS | wrapper | 2006/05/09 16:35:03 | JVM Restarts disabled.
>>>>> Shutting down.
>>>>> STATUS | wrapper | 2006/05/09 16:35:03 | <-- Wrapper Stopped
>>>>>
>>>>> I can set the wrapper.ping.timeout to zero to avoid this.
>>>>> Shouldn't wrapper should detect debug mode?
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------
>>>>> Using Tomcat but need to do more? Need to support web services,
>>>>> security?
>>>>> Get stuff done quickly with pre-integrated technology to make
>>>>> your job easier
>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>>>> Geronimo
>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>>>
>>>>> _______________________________________________
>>>>> Wrapper-user mailing list
>>>>> Wra...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>>>>
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> Using Tomcat but need to do more? Need to support web services,
>>>> security?
>>>> Get stuff done quickly with pre-integrated technology to make
>>>> your job easier
>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>>> Geronimo
>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>>
>>>> _______________________________________________
>>>> Wrapper-user mailing list
>>>> Wra...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services,
>>> security?
>>> Get stuff done quickly with pre-integrated technology to make your
>>> job easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>> Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>
>>> _______________________________________________
>>> Wrapper-user mailing list
>>> Wra...@li...
>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services,
>> security?
>> Get stuff done quickly with pre-integrated technology to make your
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
>> _______________________________________________
>> Wrapper-user mailing list
>> Wra...@li...
>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|
|
From: David H. <da...@sm...> - 2006-05-17 12:15:24
|
I love the sound of that Leif!
You would never really want to roll out an application in Debug mode (in =
my
mind at least), so you wouldn't care as much about the restarting of the
application. You would though care if it would have been restarted, this
will do the job nicely!
Cheers Leif,
David
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Leif
Mortenson
Sent: 17 May 2006 03:47
To: wra...@li...
Subject: Re: [Wrapper-user] Debugging with wrapper
Chandra, David,
I made some changes for the 3.2.1 release.
The wrapper will now enter a "DebugJVM" mode if the=20
wrapper.java.command ends
in "jdb" or "jdb.exe", or the "-Xdebug" argument is passed to the JVM.
When operating in the "DebugJVM" mode, a warning will be displayed=20
on JVM launch
if any of the timeouts are not set to 0. The warning warns that the=20
ability to detect and
restart a frozen JVM will be disabled.
Then if a timeout does occur, it will be ignored. But the first=20
such timeout will cause
another warning to be displayed to the user stating which timeout was=20
encountered and
saying that it may be caused by a debugger having suspended the JVM.
Does this make everyone happy?
Cheers,
Leif
=20
Chandra Patni wrote:
> I see how your proposal is more compliant and semantically correct=20
> than mine which is in the spirit of 'benevolent dictatorship'. Either=20
> way, it would be nice to have nice debugging experience.
>
>
>
> da...@sm... wrote:
>> I agree and disagree. I don't think the wrapper should set its ping=20
>> to 0 if debug is set, but I do think it should not restart when=20
>> debug is set. Maybe record in in the log file that it timed out, but =
>> due to debug existing, the application won't be restarted, unless=20
>> there is some super-sexy way of finding out from the debugged=20
>> application that the wrapper thread (and others depending upon the=20
>> debugger that connects to it) has been debug paused.
>>
>> My thoughts at least!
>>
>> Cheers again Leif!
>>
>> Quoting Chandra Patni <cp...@ig...>:
>>
>>> I think wrapper should set ping timeout to zero if -Xdebug and
>>> -Xrunjdwp .... option is set for JVMDI supporting VMs. And print =
out
>>> this as warning. It should also do the same when -agentlib:jdwp...
>>> option is set for newer JVMTI supporting VMs. Otherwise, it will =
always
>>> result in surprised user.
>>>
>>>
>>>
>>> Leif Mortenson wrote:
>>>
>>>> Chandra,
>>>> I'm not sure of any way to let the Wrapper know that the JVM is =20
>>>> paused due to
>>>> debug mode. You would not want to disable the ping timeout simply=20
>>>> because
>>>> debug was enabled. I should add a note about this or maybe=20
>>>> make the Wrapper
>>>> provide some additional info if the command line contains -Xdebug. =
>>>> Setting
>>>> wrapper.ping.timeout to 0 should solve the problem for you however.
>>>>
>>>> Cheers,
>>>> Leif
>>>>
>>>> Chandra Patni wrote:
>>>>
>>>>> I started my JVM with
>>>>> -Xdebug -Xnoagent -Djava.compiler=3DNONE =20
>>>>> =
-Xrunjdwp:transport=3Ddt_socket,server=3Dy,suspend=3Dn,address=3D5005
>>>>>
>>>>> and attached IDE debugger. Blocked a JSP thread on a breakpoint. =
>>>>> The wrapper restarts/shuts down (depending on =20
>>>>> wrapper.disable_restarts=3DTRUE) the VM.
>>>>>
>>>>>
>>>>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM appears hung:=20
>>>>> Timed out waiting for signal from JVM.
>>>>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM did not exit on =20
>>>>> request, terminated
>>>>> STATUS | wrapper | 2006/05/09 16:35:03 | JVM Restarts disabled. =
>>>>> Shutting down.
>>>>> STATUS | wrapper | 2006/05/09 16:35:03 | <-- Wrapper Stopped
>>>>>
>>>>> I can set the wrapper.ping.timeout to zero to avoid this. =20
>>>>> Shouldn't wrapper should detect debug mode?
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------
>>>>> Using Tomcat but need to do more? Need to support web services,=20
>>>>> security?
>>>>> Get stuff done quickly with pre-integrated technology to make=20
>>>>> your job easier
>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache=20
>>>>> Geronimo
>>>>>
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642=20
>>>>>
>>>>> _______________________________________________
>>>>> Wrapper-user mailing list
>>>>> Wra...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>>>>
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> Using Tomcat but need to do more? Need to support web services,=20
>>>> security?
>>>> Get stuff done quickly with pre-integrated technology to make=20
>>>> your job easier
>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache=20
>>>> Geronimo
>>>>
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642=20
>>>>
>>>> _______________________________________________
>>>> Wrapper-user mailing list
>>>> Wra...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services,=20
>>> security?
>>> Get stuff done quickly with pre-integrated technology to make your=20
>>> job easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache=20
>>> Geronimo
>>> =
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
>>>
>>> _______________________________________________
>>> Wrapper-user mailing list
>>> Wra...@li...
>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services,=20
>> security?
>> Get stuff done quickly with pre-integrated technology to make your=20
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache=20
>> Geronimo
>> =
http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=120709&bid&3057&dat=121642
>> _______________________________________________
>> Wrapper-user mailing list
>> Wra...@li...
>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, =
security?
> Get stuff done quickly with pre-integrated technology to make your job =
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache=20
> Geronimo
> =
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, =
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache =
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|
|
From: Chandra P. <cp...@ig...> - 2006-06-06 22:04:38
|
This is great. But there is slight problem with simply using -Xdebug alone. There are two ways of debugging JVMs. JVMPI and JVMTI. You can run VM with -Xdebug alone but it's not really interesting. However, I think that's ok for the detecting JVMPI since JVMPI uses -Xdebug option. http://blogs.sun.com/roller/page/kto?entry=using_vm_agents As far as I have tested, under JVMTI you can simply use -agentlib:jdwp option to debug. -Xdebug is not necessary. For -Xdebug http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/jvmti.html For JVMTI and JVMPI with debugging (JPDA) http://java.sun.com/j2se/1.5.0/docs/guide/jpda/enhancements.html Leif Mortenson wrote: > Chandra, David, > I made some changes for the 3.2.1 release. > > The wrapper will now enter a "DebugJVM" mode if the > wrapper.java.command ends > in "jdb" or "jdb.exe", or the "-Xdebug" argument is passed to the JVM. > > When operating in the "DebugJVM" mode, a warning will be displayed on > JVM launch > if any of the timeouts are not set to 0. The warning warns that the > ability to detect and > restart a frozen JVM will be disabled. > > Then if a timeout does occur, it will be ignored. But the first such > timeout will cause > another warning to be displayed to the user stating which timeout was > encountered and > saying that it may be caused by a debugger having suspended the JVM. > > Does this make everyone happy? > > Cheers, > Leif > > > Chandra Patni wrote: > >> I see how your proposal is more compliant and semantically correct >> than mine which is in the spirit of 'benevolent dictatorship'. Either >> way, it would be nice to have nice debugging experience. >> >> >> >> da...@sm... wrote: >> >>> I agree and disagree. I don't think the wrapper should set its ping >>> to 0 if debug is set, but I do think it should not restart when >>> debug is set. Maybe record in in the log file that it timed out, but >>> due to debug existing, the application won't be restarted, unless >>> there is some super-sexy way of finding out from the debugged >>> application that the wrapper thread (and others depending upon the >>> debugger that connects to it) has been debug paused. >>> >>> My thoughts at least! >>> >>> Cheers again Leif! >>> >>> Quoting Chandra Patni <cp...@ig...>: >>> >>>> I think wrapper should set ping timeout to zero if -Xdebug and >>>> -Xrunjdwp .... option is set for JVMDI supporting VMs. And print out >>>> this as warning. It should also do the same when -agentlib:jdwp... >>>> option is set for newer JVMTI supporting VMs. Otherwise, it will always >>>> result in surprised user. >>>> >>>> >>>> >>>> Leif Mortenson wrote: >>>> >>>>> Chandra, >>>>> I'm not sure of any way to let the Wrapper know that the JVM is >>>>> paused due to >>>>> debug mode. You would not want to disable the ping timeout simply >>>>> because >>>>> debug was enabled. I should add a note about this or maybe >>>>> make the Wrapper >>>>> provide some additional info if the command line contains -Xdebug. >>>>> Setting >>>>> wrapper.ping.timeout to 0 should solve the problem for you however. >>>>> >>>>> Cheers, >>>>> Leif >>>>> >>>>> Chandra Patni wrote: >>>>> >>>>>> I started my JVM with >>>>>> -Xdebug -Xnoagent -Djava.compiler=NONE >>>>>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 >>>>>> >>>>>> and attached IDE debugger. Blocked a JSP thread on a breakpoint. >>>>>> The wrapper restarts/shuts down (depending on >>>>>> wrapper.disable_restarts=TRUE) the VM. >>>>>> >>>>>> >>>>>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM appears hung: >>>>>> Timed out waiting for signal from JVM. >>>>>> ERROR | wrapper | 2006/05/09 16:35:02 | JVM did not exit on >>>>>> request, terminated >>>>>> STATUS | wrapper | 2006/05/09 16:35:03 | JVM Restarts disabled. >>>>>> Shutting down. >>>>>> STATUS | wrapper | 2006/05/09 16:35:03 | <-- Wrapper Stopped >>>>>> >>>>>> I can set the wrapper.ping.timeout to zero to avoid this. >>>>>> Shouldn't wrapper should detect debug mode? >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> Using Tomcat but need to do more? Need to support web services, >>>>>> security? >>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>> your job easier >>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>>>> Geronimo >>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>> >>>>>> _______________________________________________ >>>>>> Wrapper-user mailing list >>>>>> Wra...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> Using Tomcat but need to do more? Need to support web services, >>>>> security? >>>>> Get stuff done quickly with pre-integrated technology to make >>>>> your job easier >>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>>> Geronimo >>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>> >>>>> _______________________________________________ >>>>> Wrapper-user mailing list >>>>> Wra...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> Using Tomcat but need to do more? Need to support web services, >>>> security? >>>> Get stuff done quickly with pre-integrated technology to make your >>>> job easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>> Geronimo >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> >>>> _______________________________________________ >>>> Wrapper-user mailing list >>>> Wra...@li... >>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 >>> _______________________________________________ >>> Wrapper-user mailing list >>> Wra...@li... >>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |