You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(13) |
Nov
(16) |
Dec
(29) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(38) |
Feb
(51) |
Mar
(51) |
Apr
(115) |
May
(82) |
Jun
(30) |
Jul
(50) |
Aug
(68) |
Sep
(57) |
Oct
(160) |
Nov
(80) |
Dec
(78) |
| 2004 |
Jan
(71) |
Feb
(75) |
Mar
(108) |
Apr
(87) |
May
(79) |
Jun
(70) |
Jul
(69) |
Aug
(39) |
Sep
(52) |
Oct
(47) |
Nov
(50) |
Dec
(32) |
| 2005 |
Jan
(22) |
Feb
(122) |
Mar
(46) |
Apr
(76) |
May
(31) |
Jun
(51) |
Jul
(61) |
Aug
(70) |
Sep
(37) |
Oct
(46) |
Nov
(57) |
Dec
(83) |
| 2006 |
Jan
(55) |
Feb
(81) |
Mar
(51) |
Apr
(67) |
May
(77) |
Jun
(43) |
Jul
(106) |
Aug
(64) |
Sep
(47) |
Oct
(64) |
Nov
(60) |
Dec
(12) |
| 2007 |
Jan
(50) |
Feb
(93) |
Mar
(49) |
Apr
(56) |
May
(40) |
Jun
(63) |
Jul
(40) |
Aug
(47) |
Sep
(54) |
Oct
(37) |
Nov
(54) |
Dec
(37) |
| 2008 |
Jan
(35) |
Feb
(39) |
Mar
(26) |
Apr
(14) |
May
(23) |
Jun
(51) |
Jul
(43) |
Aug
(26) |
Sep
(29) |
Oct
(31) |
Nov
(24) |
Dec
(16) |
| 2009 |
Jan
(21) |
Feb
(30) |
Mar
(74) |
Apr
(26) |
May
(26) |
Jun
(43) |
Jul
(23) |
Aug
(23) |
Sep
(15) |
Oct
(27) |
Nov
(37) |
Dec
(10) |
| 2010 |
Jan
(16) |
Feb
(28) |
Mar
(16) |
Apr
(45) |
May
(8) |
Jun
(68) |
Jul
(45) |
Aug
(44) |
Sep
(51) |
Oct
(7) |
Nov
(20) |
Dec
(21) |
| 2011 |
Jan
(14) |
Feb
(17) |
Mar
(7) |
Apr
(7) |
May
(48) |
Jun
(23) |
Jul
(5) |
Aug
(33) |
Sep
(22) |
Oct
(14) |
Nov
(14) |
Dec
(5) |
| 2012 |
Jan
|
Feb
(10) |
Mar
(12) |
Apr
(51) |
May
(10) |
Jun
(8) |
Jul
(14) |
Aug
(22) |
Sep
(9) |
Oct
(24) |
Nov
(14) |
Dec
(13) |
| 2013 |
Jan
(12) |
Feb
(4) |
Mar
(14) |
Apr
(19) |
May
(2) |
Jun
(5) |
Jul
(13) |
Aug
(10) |
Sep
(4) |
Oct
(11) |
Nov
(13) |
Dec
(2) |
| 2014 |
Jan
(3) |
Feb
(14) |
Mar
(5) |
Apr
(10) |
May
(10) |
Jun
(11) |
Jul
(10) |
Aug
(3) |
Sep
(13) |
Oct
(22) |
Nov
(14) |
Dec
(32) |
| 2015 |
Jan
(8) |
Feb
(2) |
Mar
(17) |
Apr
(1) |
May
(24) |
Jun
|
Jul
(4) |
Aug
|
Sep
(9) |
Oct
(9) |
Nov
(5) |
Dec
(2) |
| 2016 |
Jan
(8) |
Feb
(6) |
Mar
(6) |
Apr
(9) |
May
(3) |
Jun
(2) |
Jul
(7) |
Aug
(6) |
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
| 2017 |
Jan
(9) |
Feb
(8) |
Mar
(6) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
(10) |
Sep
(8) |
Oct
|
Nov
(6) |
Dec
|
| 2018 |
Jan
|
Feb
(5) |
Mar
(7) |
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(9) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2019 |
Jan
(9) |
Feb
|
Mar
|
Apr
(10) |
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2021 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(3) |
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2023 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2026 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Leif M. <le...@ta...> - 2004-01-02 08:51:12
|
Guofeng, You should have no problems running two different instances of the Wrapper of the same machine. Just install the two copies into different directories and make sure that they do not have conflicting NT service names or log files. Everything else should be automatic. Guofeng Zhang wrote: >I need to install two services by wrapper on the same machine, do I need further configuration in the conf file? > >I find that the wrapper assign a jvm id to a service instance. > > The jvm id is simply a way for an individual JVM to tell whether it is the first invocation or whether the Wrapper has restarted the JVM x number of times. Give it a try and post back if you have any questions. Be sure to read over the integration section of the documentation. Cheers, Leif |
|
From: Guofeng Z. <guo...@vi...> - 2004-01-02 07:33:34
|
I need to install two services by wrapper on the same machine, do I = need further configuration in the conf file? I find that the wrapper assign a jvm id to a service instance. Thanks |
|
From: Grant \(ProtectionNET\) <gr...@pr...> - 2003-12-26 05:34:41
|
Leif,
Another thing, when DST comes into effect, some regions change +- by 2 hours
so this is going to cause a problem relying on time in the wrapper code.
I poked around in the wrapper.c and WrapperManager.java source and I
absolutely think you could modify the code to include a no-time dependant
counter.
This would require you to create your own timer thread that polls every
second and increments an unsigned long.
I use this code in some of my Java apps to get a counter that continues
forward independant of the actual system time.
private long secondTimer = 0;
Thread t = new Thread()
{
public void run()
{
while (true)
{
try
{
secondTimer++;
if (secondTimer == Long.MAX_VALUE-1) secondTimer = 0;
sleep(1000);
}
catch (Exception e)
{
}
}
}
};
t.start();
I'm sure it wouldn't take long to develop the same code for the wrapper.c on
Win32 and Unix ? The lack of standard threads in unix could be an issue? but
using time the way you have will definitely cause an issue every DST
adjustment or when the user changes the system time. They'll need to restart
wrapper to fix this.
I would continue to use a date based timer for understanding CPU load but
ignore anything that jumps by more than 10 seconds as time adjustment above
this is likely a time change. 10 seconds with no CPU time is a LONG time. If
everything else moves to a CPU timer (on unix you could just count every 1/4
second or adjust that sleep to 1 second and continue counting).
When using NTP, the systems tend to drift time upwards and downwards
gracefully so that apps don't notice the change - most hwclocks will only
loose 1 second a day at worst so this would not really be worth worrying
about.
Grant
----- Original Message -----
From: "Leif Mortenson" <le...@ta...>
To: <wra...@li...>
Sent: Friday, December 26, 2003 10:33 AM
Subject: Re: [Wrapper-user] Wrapper and Time
> Grant,
> :-/ That doesn't surprise me in the least that you are having
> problems there. The
> Wrapper makes extensive use of time both in its native and Java
> components to keep
> track of various timeouts. The Wrapper currently relies on the system
> time being
> fairly reliable.
>
> I could probably add some code to reset the various timeouts in the
> event that either
> component of the Wrapper detects that the system time appears to have
> been changed.
> Ie when the time decreases or is increased by a large amount.
>
> Small forward adjustments of the system time would be very difficult
> to detect
> because the Wrapper contains features to detect when the system has been
> heavily
> loaded. I am not sure that it would be possible to differentiate
> between the cases where
> the process is not given any CPU for a minute vs the clock being
> instantly set ahead
> by a minute.
>
> Could you describe how you are adjusting the time? Ie by how much,
> in which
> direction and why? It will help me to prioritize this. If you know
> that the Wrapper
> simply does not like having the clock changed, would it be unreasonable
> to just not
> do this? Or is changing the clock a common operation?
>
> I know I can make the Wrapper behave better than it is now, but am
> unsure of how
> perfect I can make it perform under all situations.
>
> Cheers,
> Leif
>
> Grant (ProtectionNET) wrote:
>
> > Hi,
> >
> > I have a case where the Java app changes the system time (via OS calls
> > etc) and when Wrapper is running, I have sometimes seen strange
> > problems and the wrapper service shuts down or goes crazy when the
> > time is changed around.
> >
> > I'm only starting to investigate this now, so I don't have all the
> > facts yet.
> >
> > Can someone explain to me what reliance Wrapper has to time and how it
> > uses it... that would help me track this problem down...
> >
> > Thanks a billion.... and merry-xmas and all that ;-)
> >
> > Regards,
> >
> > Grant
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
|
|
From: Grant \(ProtectionNET\) <gr...@pr...> - 2003-12-26 04:44:25
|
Lief, Changing the time and timezone is part of the system configuration that this java app performs. Normally this would only occur at initial setup and possibly only rarely so I'm going to avoid the whole issue by making the app restart. I'm obviously still caught in a situation where wrapper still thinks time has gone silly... It seems as though setting the time backwards (ie changing it from 2:00pm to 10:00) causes Wrapper to report silly things like "process has not recieved CPU time for 14308 seconds, extending timeouts" which worry me because what is it doing when it see's this. I have also had the wrapper complain and restart - not good. I've not looked through the source of wrapper (perhaps I should) but why could you not just increment an int for X times and sleep for 1 sec each time. When you get to X you would know that the code has reached that timeout - this makes your counters work regardless of what the real time is outside. I'm going to look through the source and see if I can make what I need to work. If I figure anything out, I'll let you know. Grant ----- Original Message ----- From: "Leif Mortenson" <le...@ta...> To: <wra...@li...> Sent: Friday, December 26, 2003 10:33 AM Subject: Re: [Wrapper-user] Wrapper and Time > Grant, > :-/ That doesn't surprise me in the least that you are having > problems there. The > Wrapper makes extensive use of time both in its native and Java > components to keep > track of various timeouts. The Wrapper currently relies on the system > time being > fairly reliable. > > I could probably add some code to reset the various timeouts in the > event that either > component of the Wrapper detects that the system time appears to have > been changed. > Ie when the time decreases or is increased by a large amount. > > Small forward adjustments of the system time would be very difficult > to detect > because the Wrapper contains features to detect when the system has been > heavily > loaded. I am not sure that it would be possible to differentiate > between the cases where > the process is not given any CPU for a minute vs the clock being > instantly set ahead > by a minute. > > Could you describe how you are adjusting the time? Ie by how much, > in which > direction and why? It will help me to prioritize this. If you know > that the Wrapper > simply does not like having the clock changed, would it be unreasonable > to just not > do this? Or is changing the clock a common operation? > > I know I can make the Wrapper behave better than it is now, but am > unsure of how > perfect I can make it perform under all situations. > > Cheers, > Leif > > Grant (ProtectionNET) wrote: > > > Hi, > > > > I have a case where the Java app changes the system time (via OS calls > > etc) and when Wrapper is running, I have sometimes seen strange > > problems and the wrapper service shuts down or goes crazy when the > > time is changed around. > > > > I'm only starting to investigate this now, so I don't have all the > > facts yet. > > > > Can someone explain to me what reliance Wrapper has to time and how it > > uses it... that would help me track this problem down... > > > > Thanks a billion.... and merry-xmas and all that ;-) > > > > Regards, > > > > Grant > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Leif M. <le...@ta...> - 2003-12-26 00:33:35
|
Grant,
:-/ That doesn't surprise me in the least that you are having
problems there. The
Wrapper makes extensive use of time both in its native and Java
components to keep
track of various timeouts. The Wrapper currently relies on the system
time being
fairly reliable.
I could probably add some code to reset the various timeouts in the
event that either
component of the Wrapper detects that the system time appears to have
been changed.
Ie when the time decreases or is increased by a large amount.
Small forward adjustments of the system time would be very difficult
to detect
because the Wrapper contains features to detect when the system has been
heavily
loaded. I am not sure that it would be possible to differentiate
between the cases where
the process is not given any CPU for a minute vs the clock being
instantly set ahead
by a minute.
Could you describe how you are adjusting the time? Ie by how much,
in which
direction and why? It will help me to prioritize this. If you know
that the Wrapper
simply does not like having the clock changed, would it be unreasonable
to just not
do this? Or is changing the clock a common operation?
I know I can make the Wrapper behave better than it is now, but am
unsure of how
perfect I can make it perform under all situations.
Cheers,
Leif
Grant (ProtectionNET) wrote:
> Hi,
>
> I have a case where the Java app changes the system time (via OS calls
> etc) and when Wrapper is running, I have sometimes seen strange
> problems and the wrapper service shuts down or goes crazy when the
> time is changed around.
>
> I'm only starting to investigate this now, so I don't have all the
> facts yet.
>
> Can someone explain to me what reliance Wrapper has to time and how it
> uses it... that would help me track this problem down...
>
> Thanks a billion.... and merry-xmas and all that ;-)
>
> Regards,
>
> Grant
|
|
From: Grant \(ProtectionNET\) <gr...@pr...> - 2003-12-25 21:38:56
|
Hi, I have a case where the Java app changes the system time (via OS calls = etc) and when Wrapper is running, I have sometimes seen strange problems = and the wrapper service shuts down or goes crazy when the time is = changed around. I'm only starting to investigate this now, so I don't have all the facts = yet. Can someone explain to me what reliance Wrapper has to time and how it = uses it... that would help me track this problem down...=20 Thanks a billion.... and merry-xmas and all that ;-) Regards, Grant |
|
From: Leif M. <le...@ta...> - 2003-12-22 15:36:10
|
Thorsten,
Other users have reported similar problems in the past, but it has
always turned out to
be an incorrectly installed or corrupted JVM installation. The Wrapper
is capable of
running with either the JRE or the SDK.
Try adding the following property to the wrapper.conf
wrapper.debug=true
The next time you try to launch the wrapper, you will see the full
command used to
launch the JVM. The first thing to try is simply running java.-version
using the path
specified in the debug output from the directory where the wrapper
script is located.
If that works, then you can build a simple shell script that runs
the same command
that is generated by the Wrapper and see how that works. If you do
this, you will
need to remove the -Dwrapper.key property from the resulting command.
This tells
the Java side of the Wrapper that the JVM was launched by the Wrapper.
Post back with the results or if this didn't solve the problem.
Cheers,
Leif
Thorsten Kamann wrote:
> Hello,
>
> I have downloaded the binaries and want to execute the
> sample testwrapper start.
>
> But without success. The Logfile says:
> STATUS | wrapper | 2003/12/18 20:51:45 | --> Wrapper
> Started as Daemon
> STATUS | wrapper | 2003/12/18 20:51:46 | Launching a
> JVM...
> ERROR | wrapper | 2003/12/18 20:51:46 | Unable to
> start a JVM
> INFO | jvm 1 | 2003/12/18 20:51:46 | Error
> occurred during initialization of VM
> INFO | jvm 1 | 2003/12/18 20:51:46 | Unable to
> load native library: libjvm.so: cannot open shared
> object file: No such file or directory
> STATUS | wrapper | 2003/12/18 20:51:46 | <-- Wrapper
> Stopped
>
> The configuration files are the originals without change.
> The JVM is:
> java version "1.4.2_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build
> 1.4.2_02-b03)
> Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
>
> and is installed at /usr/lib/java. The java command
> points to a sdk and not jre, because I'm running a
> tomcat instance on this system.
>
> What is the problem?
>
> Thorsten
>
|
|
From: Martin A. <ma...@me...> - 2003-12-22 15:32:45
|
Just submited the request: http://sourceforge.net/tracker/index.php?func=detail&atid=425188&aid=864463& group_id=39428 -----Mensaje original----- De: Leif Mortenson [mailto:le...@ta...] Enviado el: Lunes, 22 de Diciembre de 2003 12:17 p.m. Para: wra...@li... Asunto: Re: [Wrapper-user] (no subject) Martin, It is possible to change the log file name using the wrapper.logfile property. You would set it to myapp.log. It is not currently possible to change the way rolled file names are generated. The name you specify will always be appended by a period then an integer. Go ahead and post a Feature Request on the SF project site. Please explain the problem you are having and any suggestions as to how you would like to see the configuration handled. The feature request list has been growing lately, but if you have any suggestions for a clean way to configure this then it will end up higher on my list. Cheers, Leif Martin Alaimo wrote: > Is there a way to change the logfile name, not only the name itself, > also where the logfile number must be placed? > > for example, > i stead of: myapp.log --> myapp.log, myapp.log.1, myapp.log.2, etc.. > > i would like: > myapp_X.log --> myapp_0.log, myapp_1.log, myapp_2.log, etc.. > ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Leif M. <le...@ta...> - 2003-12-22 15:17:16
|
Martin,
It is possible to change the log file name using the wrapper.logfile
property.
You would set it to myapp.log. It is not currently possible to change
the way
rolled file names are generated. The name you specify will always be
appended
by a period then an integer.
Go ahead and post a Feature Request on the SF project site. Please
explain
the problem you are having and any suggestions as to how you would like
to see
the configuration handled. The feature request list has been growing
lately, but
if you have any suggestions for a clean way to configure this then it
will end up
higher on my list.
Cheers,
Leif
Martin Alaimo wrote:
> Is there a way to change the logfile name, not only the name itself,
> also where the logfile number must be placed?
>
> for example,
> i stead of: myapp.log --> myapp.log, myapp.log.1, myapp.log.2, etc..
>
> i would like:
> myapp_X.log --> myapp_0.log, myapp_1.log, myapp_2.log, etc..
>
|
|
From: Leif M. <le...@ta...> - 2003-12-22 15:11:14
|
Grant,
The Wrapper only imposes the 5 second delay, configurable by the
wrapper.restart.delay property. If your application is taking 30
seconds to restart
then something else is going on. Try turning on debug output using the
wrapper.debug=true property. You will then be able to see exactly what
is going
on .
The most common cause of slow restarts is that your application is
not shutting
down immediately. This should be obvious from the debug output. If you
have
any questions about how to read the debug output then go ahead and post
it to
the list.
Cheers,
Leif
Grant (ProtectionNET) wrote:
> I did see that in the docs...
>
> The docs didn't say if that settings was for all restart conditions
> (of which in case of an error I would be happy for a 5 sec delay) or
> just Wrapper.restart().
>
> I'll try setting the value to zero - what other effects does this
> setting have ?
>
> Grant
>
> ----- Original Message -----
> *From:* Sal Ingrilli <mailto:sal...@sy...>
> *To:* wra...@li...
> <mailto:wra...@li...>
> *Sent:* Monday, December 22, 2003 2:55 PM
> *Subject:* RE: [Wrapper-user] Wrapper restart delay
>
> i can give you a reason:
> assume that a runtime exception in your program is causing a
> restart () request as soon as the app boots-up.
> this would generate an inifinite loop (start/restart) and your app
> would end up taking 100% of cpu cycles.
> so the delay is a good thing.
>
> however i agree with you that it should be your call &
> responsibility to make sure that doesn't happen.
> so, have you tried reading the documentation & for example setting
> wrapper.restart.delay in wrapper.conf (depending on what wrapper
> version you're running)?
> also, have you accounted for the time taken for
> 1. your application to stop
> 2. the time taken for the OS to stop the service
> 3. the time taken for the OS to start the service
> 4. your application to start
>
> -----Original Message-----
> *From:* wra...@li...
> [mailto:wra...@li...]*On Behalf Of
> *Grant (ProtectionNET)
> *Sent:* Sunday, December 21, 2003 8:38 PM
> *To:* wra...@li...
> *Subject:* [Wrapper-user] Wrapper restart delay
>
> Hi,
>
> When my java app requests a restart via Wrapper.restart()
> there is a noticable 30 sec delay before the Wrapper restarts
> the VM.
>
> I'm keen to reduce this delay to zero if possible. I'm only
> interested in reducing the delay when I request a restart - I
> don't understand why a delay exists when I request the
> restart. I would have thought this could be instant... no need
> to wait 30 sec is there ?
>
> Is calling Wrapper.restart() the correct procedure to quit
> your app and instantly restart it ?
>
> Regards,
>
> Grant
>
|
|
From: Martin A. <ma...@me...> - 2003-12-22 12:38:52
|
Is there a way to change the logfile name, not only the name itself, = also where the logfile number must be placed? for example, i stead of: myapp.log --> myapp.log, myapp.log.1, myapp.log.2, etc.. i would like: myapp_X.log --> myapp_0.log, myapp_1.log, myapp_2.log, etc.. Mart=EDn Alaimo tecnolog=EDa=20 meta-i | internet global vision | http://www.meta-i.com Humboldt 1917 Buenos Aires (C1414CTU) ARGENTINA=20 54-11-4770-9333 | ma...@me... |
|
From: Grant \(ProtectionNET\) <gr...@pr...> - 2003-12-22 07:50:47
|
I did see that in the docs...
The docs didn't say if that settings was for all restart conditions (of =
which in case of an error I would be happy for a 5 sec delay) or just =
Wrapper.restart().
I'll try setting the value to zero - what other effects does this =
setting have ?
Grant
----- Original Message -----=20
From: Sal Ingrilli=20
To: wra...@li...=20
Sent: Monday, December 22, 2003 2:55 PM
Subject: RE: [Wrapper-user] Wrapper restart delay
i can give you a reason:
assume that a runtime exception in your program is causing a restart =
() request as soon as the app boots-up.
this would generate an inifinite loop (start/restart) and your app =
would end up taking 100% of cpu cycles.
so the delay is a good thing.
however i agree with you that it should be your call & responsibility =
to make sure that doesn't happen.
so, have you tried reading the documentation & for example setting =
wrapper.restart.delay in wrapper.conf (depending on what wrapper version =
you're running)?
also, have you accounted for the time taken for
1. your application to stop
2. the time taken for the OS to stop the service
3. the time taken for the OS to start the service
4. your application to start
-----Original Message-----
From: wra...@li... =
[mailto:wra...@li...]On Behalf Of Grant =
(ProtectionNET)
Sent: Sunday, December 21, 2003 8:38 PM
To: wra...@li...
Subject: [Wrapper-user] Wrapper restart delay
Hi,
When my java app requests a restart via Wrapper.restart() there is a =
noticable 30 sec delay before the Wrapper restarts the VM.
I'm keen to reduce this delay to zero if possible. I'm only =
interested in reducing the delay when I request a restart - I don't =
understand why a delay exists when I request the restart. I would have =
thought this could be instant... no need to wait 30 sec is there ?
Is calling Wrapper.restart() the correct procedure to quit your app =
and instantly restart it ?
Regards,
Grant |
|
From: Sal I. <sal...@sy...> - 2003-12-22 04:55:24
|
i can give you a reason: assume that a runtime exception in your program is causing a restart () request as soon as the app boots-up. this would generate an inifinite loop (start/restart) and your app would end up taking 100% of cpu cycles. so the delay is a good thing. however i agree with you that it should be your call & responsibility to make sure that doesn't happen. so, have you tried reading the documentation & for example setting wrapper.restart.delay in wrapper.conf (depending on what wrapper version you're running)? also, have you accounted for the time taken for 1. your application to stop 2. the time taken for the OS to stop the service 3. the time taken for the OS to start the service 4. your application to start -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Grant (ProtectionNET) Sent: Sunday, December 21, 2003 8:38 PM To: wra...@li... Subject: [Wrapper-user] Wrapper restart delay Hi, When my java app requests a restart via Wrapper.restart() there is a noticable 30 sec delay before the Wrapper restarts the VM. I'm keen to reduce this delay to zero if possible. I'm only interested in reducing the delay when I request a restart - I don't understand why a delay exists when I request the restart. I would have thought this could be instant... no need to wait 30 sec is there ? Is calling Wrapper.restart() the correct procedure to quit your app and instantly restart it ? Regards, Grant |
|
From: Grant \(ProtectionNET\) <gr...@pr...> - 2003-12-22 04:38:46
|
Hi, When my java app requests a restart via Wrapper.restart() there is a = noticable 30 sec delay before the Wrapper restarts the VM. I'm keen to reduce this delay to zero if possible. I'm only interested = in reducing the delay when I request a restart - I don't understand why = a delay exists when I request the restart. I would have thought this = could be instant... no need to wait 30 sec is there ? Is calling Wrapper.restart() the correct procedure to quit your app and = instantly restart it ? Regards, Grant |
|
From: Thorsten K. <Th...@pl...> - 2003-12-18 21:30:33
|
Hello, I have downloaded the binaries and want to execute the sample testwrapper start. But without success. The Logfile says: STATUS | wrapper | 2003/12/18 20:51:45 | --> Wrapper Started as Daemon STATUS | wrapper | 2003/12/18 20:51:46 | Launching a JVM... ERROR | wrapper | 2003/12/18 20:51:46 | Unable to start a JVM INFO | jvm 1 | 2003/12/18 20:51:46 | Error occurred during initialization of VM INFO | jvm 1 | 2003/12/18 20:51:46 | Unable to load native library: libjvm.so: cannot open shared object file: No such file or directory STATUS | wrapper | 2003/12/18 20:51:46 | <-- Wrapper Stopped The configuration files are the originals without change. The JVM is: java version "1.4.2_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03) Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode) and is installed at /usr/lib/java. The java command points to a sdk and not jre, because I'm running a tomcat instance on this system. What is the problem? Thorsten -- Thorsten Kamann Email: tho...@pl... ICQ: 40746578 Yahoo: ThorQue |
|
From: Paul C. <cas...@au...> - 2003-12-18 00:31:41
|
Well, you've come to the right place! The Java Service Wrapper is a
fantastic piece of software, which upon first approach can seem daunting.
This is because it is *so* highly configurable, flexible and powerful.
The documentation on the site really is the best companion for setting up
the Wrapper, but maybe we can help speed things up.
You will notice that there are a few ways that you can implement the
Wrapper for your application. Selecting the appropriate one depends upon
how your application starts up and shuts down - ie, does it use database
connections that need to be tidied up and returned to a connection pool
before the JVM exits, or it the Java application that you want to run as a
service a small utility program that pretty much runs independently and
isolated from other resources?
How do you currently start your Java application (ie batch/script file/
double click an executable jar)?
Is this an existing application, or is it something that you are planning
to create?
We need some more information so that we can get it working for you. Once
you get through it though, I'm sure you'll be wrapped (pardon the pun), er
delighted.
Regards,
Paul Casanova
IBM RSSC-Ballarat
"Chhabria, Kavita - Apogent"
<kch...@ap...> To: "'wra...@li...'" <wra...@li...>
Sent by: cc:
wra...@li... Subject: [Wrapper-user] How do you take a java class file and convert it into a nt
ceforge.net servic e?
18/12/2003 04:21 AM
Please respond to
wrapper-user
Hello everyone:
Can someone please describe to me the steps involved in taking a java class
file and then converting it into a NT service. I have read some
documentation at the site but I am still confused on how to do this?
Thanks a lot
Kavita Chhabria
Systems Developer
Apogent Technologies
(269) 544-7515
kch...@ap...
|
|
From: Chhabria, K. - A. <kch...@ap...> - 2003-12-17 17:21:51
|
Hello everyone: Can someone please describe to me the steps involved in taking a java class file and then converting it into a NT service. I have read some documentation at the site but I am still confused on how to do this? Thanks a lot Kavita Chhabria Systems Developer Apogent Technologies (269) 544-7515 <mailto:kch...@ap...> kch...@ap... |
|
From: George K. <gka...@te...> - 2003-12-17 13:11:38
|
Thanks a lot, I will chek the cvs. -George ----- Original Message ----- From: "Leif Mortenson" <le...@ta...> To: <wra...@li...> Sent: Wednesday, December 17, 2003 7:42 AM Subject: Re: [Wrapper-user] Starting a java program whenever user logs off > George, > I replied to you yesterday, but the stupid mail bounced for some > reason. Lets try this > again. > > The next release of the Wrapper contains the ability to query the > user running the > Wrapper as well as the user which is logged on to the machine at any > particular time. > This is already checked in to CVS. You can play with it but there may > still be some > changes to the API before the release. Take a look at the WrapperManager > Javadocs. > > Work has been rather busy lately so the release is going a little > slower that I had > originally planned. I am hoping to get it out in January. > > Cheers, > Leif > > > George Kakarontzas wrote: > > >Hi, > > > >I want some application specific code to run when no one is using the > >machine. I'm interested mainly for Win2K. > > > >Reading the documentation I see that the most flexible method is > >implementing this program > >as a WrapperListener. I saw that there is an event > >WRAPPER_CTRL_LOGOFF_EVENT that is > >handled by the public void controlEvent( int event ) method of a > >WrapperListener. I suppose I can use > >this to determine if the user logs off and start my app specific actions. > >Is there a way to determine if the users logs on to stop these actions? > > > >Thanks > >-George > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: IBM Linux Tutorials. > >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > >Free Linux Tutorials. Learn everything from the bash shell to sys admin. > >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > >_______________________________________________ > >Wrapper-user mailing list > >Wra...@li... > >https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <le...@ta...> - 2003-12-17 06:40:02
|
Patrick,
I have a customer running about 10 copies of the Wrapper (3.0.1)
under Solaris.
It has been working there without any problems for close to a year. I
am only aware
of one JVM crash but the Wrapper restarted it correctly.
It sounds like you have already done what I would have asked.
Turning on debug
output. That will tell me more information about exactly what is
happening and why
the Wrapper is not noticing that the JVM process has disappeared.
This is surprising because the Wrapper actually uses two methods
that would both
have to be failing before what you describe could be happening.
1) The Wrapper launched the JVM by forking its process and then
calling the JVM.
The parent process then is able to notice almost immediately if the
forked process dies.
2) The Wrapper pings the JVM every 5 seconds so it can detect when
the JVM is
frozen. 1) will only detect a crash.
Either one of the above should be able to detect that the JVM has
died. That makes
me wonder if the Wrapper process itself has somehow become frozen.
This is something
that I have never even once seen however.
If it were to become frozen then the JVM is designed to quit and
allow the Wrapper
to relaunch it in the event that it ever stops receiving ping requests
from the Wrapper.
This would end up looking exactly like what you are seeing, so it is an
obvious
possibility. Enabling the DEBUG output will confirm this, and
hopefully give some
clue as to why it happened.
Cheers,
Leif
Patrick Woodworth wrote:
>Using wrapper 3.0.4 on Solaris I've seen on two
>separate boxes the 'java' process disappear, but the
>'wrapper' process is still running (according to ps).
>The wrapper log unfortunately had *nothing* unusual,
>not even a shutdown message. On one box this occurred
>after 3 hours of running, on another box it took 15
>days. I've since changed the conf file to spit out
>DEBUG logging, but have yet to reproduce the problem.
>Has anyone else seen anything like this?
>
>
|
|
From: Leif M. <le...@ta...> - 2003-12-17 05:42:50
|
George,
I replied to you yesterday, but the stupid mail bounced for some
reason. Lets try this
again.
The next release of the Wrapper contains the ability to query the
user running the
Wrapper as well as the user which is logged on to the machine at any
particular time.
This is already checked in to CVS. You can play with it but there may
still be some
changes to the API before the release. Take a look at the WrapperManager
Javadocs.
Work has been rather busy lately so the release is going a little
slower that I had
originally planned. I am hoping to get it out in January.
Cheers,
Leif
George Kakarontzas wrote:
>Hi,
>
>I want some application specific code to run when no one is using the
>machine. I'm interested mainly for Win2K.
>
>Reading the documentation I see that the most flexible method is
>implementing this program
>as a WrapperListener. I saw that there is an event
>WRAPPER_CTRL_LOGOFF_EVENT that is
>handled by the public void controlEvent( int event ) method of a
>WrapperListener. I suppose I can use
>this to determine if the user logs off and start my app specific actions.
>Is there a way to determine if the users logs on to stop these actions?
>
>Thanks
>-George
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IBM Linux Tutorials.
>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
>Free Linux Tutorials. Learn everything from the bash shell to sys admin.
>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
|
|
From: whack er <wha...@ya...> - 2003-12-17 04:30:37
|
Hi All Hacked into the image issue and found that it was a path related issue. My code referrred to an image directory on the package structure com/test/ui/images. So the ImageIcon was being constructed using "images/back.jpg" as the parameter. While this works fine when used without the wrapper, while executing with the wrapper the images directory is expected under bin. So if I make a copy of images under bin with back.jpg things are fine. Wonder where the mistake is ? TIA --------------------------------- Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing |
|
From: Sal I. <sal...@sy...> - 2003-12-16 18:28:11
|
you might be interested in this. quartz is a java scheduler embeddable in your app/app-server. this individual was using it within Alexandria & it didn't work. he changed from Javaservice to the Java Service Wrapper & it's working now. -----Original Message----- From: SourceForge.net [mailto:no...@so...] Sent: Tuesday, December 16, 2003 4:34 AM To: no...@so... Subject: [quartz - User Discussion] RE: Quartz as NT service with Alexandria Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2335911 By: nobody It was apparently a problem with Javaservice. Because I tried with another Java tool to subscribe Quartz as NT service (Java Service Wrapper - SourceForge Project) and it works perfectly! ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=152914 |
|
From: whack er <wha...@ya...> - 2003-12-16 17:34:00
|
Hi All Seem to be running into problems in trying to paint an image on a JPanel. I am creating a UI with a background image. I have created a class extending JPanel to paint the image on the painComponent method. The call being something like : g.drawImage( image.getImage(), 0, 0, width, height, this); While this works perfect when run without the wrapper. The image is not painted when run with the wrapper. I am implementing the WrapperListener. Has someone come across this ? FYI:Images are painted on JButtons on the same UI. TIA --------------------------------- Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing |
|
From: Patrick W. <wo...@em...> - 2003-12-16 01:09:31
|
Using wrapper 3.0.4 on Solaris I've seen on two separate boxes the 'java' process disappear, but the 'wrapper' process is still running (according to ps). The wrapper log unfortunately had *nothing* unusual, not even a shutdown message. On one box this occurred after 3 hours of running, on another box it took 15 days. I've since changed the conf file to spit out DEBUG logging, but have yet to reproduce the problem. Has anyone else seen anything like this? |
|
From: George K. <gka...@te...> - 2003-12-15 16:12:15
|
Hi, I want some application specific code to run when no one is using the machine. I'm interested mainly for Win2K. Reading the documentation I see that the most flexible method is implementing this program as a WrapperListener. I saw that there is an event WRAPPER_CTRL_LOGOFF_EVENT that is handled by the public void controlEvent( int event ) method of a WrapperListener. I suppose I can use this to determine if the user logs off and start my app specific actions. Is there a way to determine if the users logs on to stop these actions? Thanks -George |