Strange problem with a thread that goes to sleep....





Hello,

I have a JAva program that runs all day long mimicking daemons. IT
calls Thread.sleep between each iteration. I am running it on an NT
server.

Eerything is wrapped in try / catch block...however the program will
sometimes quit. It will not throw an exception, or give any kind of
JVM error. Its as if somerthing wiped it out of memory. Here are the
exact 3 lines of code:

log("sleeping");
Thread.sleep(30000);
log("woke up");

I was thinking that it somehow did not wake up, but I see no trace of
java.exe in the task manager when it quits. I found out through my
research that a java process might sleep and never wake up if the
system time is adjusted during its sleep. However, I don't belieeve
this is happening b/c I don't have a dead java.exe process in the task
manager.

Another hint I recieved was that if someone logs onto the server, and
than logs off, it may send the java.exe a signal to shutdown...which
can be avoided with -XRS command line option. However, I can not
recreate this scenario...

Anyone know what might be going on?

Thanks,
eF.

.



Relevant Pages

  • Re: Strange problem with a thread that goes to sleep....
    ... I have a JAva program that runs all day long mimicking daemons. ... system time is adjusted during its sleep. ... Another hint I recieved was that if someone logs onto the server, ... than logs off, it may send the java.exe a signal to shutdown...which ...
    (comp.lang.java.programmer)
  • Sending interrupt to a shell process through telnet using tcl
    ... I am trying to automate a process to save logs on the ... Using tcl/expect i start a telnet session into the Server (running on ... How do i send this interrupt through the telnet session. ...
    (comp.lang.tcl)
  • RE: isa 2004 & external website access issue
    ... emailed the logs to you as requested. ... each web server has its own public IP ... > headers in ISA Server ... > 'Microsoft Firewall' service. ...
    (microsoft.public.windows.server.sbs)
  • RE: Exchange Server
    ... I researched your logs and found the MSExchangeTransport events 4006, 969, ... Right click Default SMTP Virtual Server and select Properties. ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • RE: OWA 2003 with ISA 2004
    ... OWA externally. ... i can login by any user. ... 825763 How to configure Internet access in Windows Small Business Server ... g. Reproduce this issue and send the logs to me. ...
    (microsoft.public.windows.server.sbs)