erlying classes sometimes cache a negative
response, so you have to restart tomcat to enable a new
lookup. (That's not specific to tomcat)
-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 3:02 AM
To: Tomcat Users List
Subject:
M
To: Tomcat Users List
Subject: Re: crontab problems
Regarding your problem: I don't understand why bouncing
Tomcat would resolve a DNS problem. The UnknownHostException
is a indication that something is wrong with DNS
, so you have to restart tomcat to enable a new
> lookup. (That's not specific to tomcat)
>
> > -Original Message-
> > From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 3:02 AM
> > To: Tomcat Users List
> > Subject
> From: "Michael Micek" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 26, 2003 10:54 AM
> Subject: JDK DNS cache (was Re: crontab problems)
> The web application developer I'm supporting has instructed me to ask:
>
> Would this be true if the jsp or sess
I do not understand this question at all ?
jsp has page scope, session has session scope ???
-Original Message-
From: Michael Micek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:54 PM
To: Tomcat Users List
Subject: JDK DNS cache (was Re: crontab problems)
On Wed, Feb
Thats like comparing apples to cowbells. The DNS caching issue is part
of the java.net package. (Actually, the sun classes which implement
that) So anything which relies on java.net has this issue. This issue
has nothing to do with session or application scope.
More information:
http://java.su
On Wed, Feb 26, 2003 at 06:57:11AM -0500, Tim Funk wrote:
> Ron Day wrote:
> >Do you know which class cache the negative response
> Its a JDK issue.
> (IIRC) Successful (and unsucessful?) DNS lookups are cached forever
> during the life of the JVM.
The web application developer I'm
6:36 AM
To: Tomcat Users List
Subject: RE: crontab problems
It's the java implementation that does the caching, as java implements
the lookup on it's own and doesn't use the operating system functions
for that. (That doesn't mean that the operating system or the resolver
l
:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 6:01 AM
To: Tomcat Users List
Subject: Re: crontab problems
Good morning!
When I deliberately use a non-existing hostname in order to force the lookup
to fail, the exception is thrown in a method indirectly called by
HttpURLConnection.connect
Users List'
> Subject: RE: crontab problems
>
> That's a shame...it's not up to the client
> to determine how long a DNS response should be cached, its up
> to the zone file on the server doing the replying.
>
-
ale behind this, as it doesn't make any sense. I'm
surprised Sun would do this.
John
> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 7:36 AM
> To: Tomcat Users List
> Subject: RE: crontab problems
>
rom: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 2:07 AM
> > To: Tomcat Users List
> > Subject: RE: crontab problems
> >
> >
> > Because the underlying classes sometimes cache a negative
> > response, so you have
nesday, February 26, 2003 2:46 AM
> To: Tomcat Users List
> Subject: RE: crontab problems
>
>
> Just a side note:
>
> If the sole reason for this jsp is the automatic check
> then your example can be stripped down to:
>
> SUCCESS
>
> The rest i
ebruary 26, 2003 1:01 PM
> To: Tomcat Users List
> Subject: Re: crontab problems
>
> Where do you get your excepetion? My guts is telling me that
> the lookup result is cached by the operating system rather
> than a Java class. On the other hand, caching a nega
tform does your
webapp run on?
- Original Message -
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 9:27 AM
Subject: RE: crontab problems
> Do you know which class cache the negative respon
-Tim
Ron Day wrote:
Do you know which class cache the negative response
-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:07 AM
To: Tomcat Users List
Subject: RE: crontab problems
Because the underlying classes sometimes ca
Runtime.getRuntime().exec( restartCommand );
} catch( IOException e ) {
e.printStackTrace();
}
}
}
- Original Message -
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2
Do you know which class cache the negative response
-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:07 AM
To: Tomcat Users List
Subject: RE: crontab problems
Because the underlying classes sometimes cache a negative
To: Tomcat Users List
> Subject: Re: crontab problems
>
> Regarding your problem: I don't understand why bouncing
> Tomcat would resolve a DNS problem. The UnknownHostException
> is a indication that something is wro
uesday, February 25, 2003 9:42 PM
> To: 'Tomcat Users List'
> Subject: RE: crontab problems
>
> Well, to be paranoid, it would have to be on a remote machine. If it
> wasn't, a network outage would take your app down, but your
> moni
bruary 25, 2003 9:17 PM
> To: 'Tomcat Users List'
> Subject: RE: crontab problems
>
>
>
> APP Monitor
>
>
> <%
> String myMonitor = "SUCCESS";
> out.println(myMonitor);
> %>
>
>
>
---
No Code attached ???
-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 8:02 PM
To: Tomcat Users List
Subject: Re: crontab problems
I attached a version of my sample code that actually works (JDK used 1.4.1).
Regarding your problem: I
DNS issue clears up , but the heartbeat still thinks there is an
exception.
-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 8:02 PM
To: Tomcat Users List
Subject: Re: crontab problems
I attached a version of my sample code that actually
ssage -
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 1:37 AM
Subject: RE: crontab problems
> I have code very similar to this that does work... except
> whenever I get an unknowHos
--Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 6:27 PM
To: Tomcat Users List
Subject: Re: crontab problems
Probably not. But the connection does have to be inside the loop. Keep in
mind that this is a concept. I have never compiled or tested
Tuesday, February 25, 2003 11:09 PM
Subject: RE: crontab problems
> Does the URL instantiation have to be inside the while loop ??
>
> -Original Message-
> From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 3:56 PM
> To: Tomcat Users Li
Does the URL instantiation have to be inside the while loop ??
-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:56 PM
To: Tomcat Users List
Subject: Re: crontab problems
Right. My sample code wasn't meant to be 100% correct. I w
7;" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 9:53 PM
Subject: RE: crontab problems
>
> Still won't work. A 404, 500, or other error will have a content length
> greater than 0. That's bad.
>
> John
>
> > -Original Message-
>
Still won't work. A 404, 500, or other error will have a content length
greater than 0. That's bad.
John
> -Original Message-
> From: Ron Day [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 3:43 PM
> To: Tomcat Users List
> Subject: RE: cronta
nal Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 2:06 PM
To: Tomcat Users List
Subject: Re: crontab problems
> Would you expand on option 2.
A Java thread is a sequence of execution of Java bytecode on a JVM.
Obviously, there can be multiple threads per
quot;flapping", where
the admin gets up/down alerts repeatedly, even though there is nothing
wrong.
John
> -Original Message-
> From: Oscar Carrillo [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 4:00 AM
> To: Tomcat Users List
> Subject: RE: crontab probl
t. If yes, everything is OK. If not, something is wrong.
>
> John
>
> > -Original Message-
> > From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 25, 2003 3:06 PM
> > To: Tomcat Users List
> > Subject: Re: crontab prob
MAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 3:06 PM
> To: Tomcat Users List
> Subject: Re: crontab problems
>
>
> > Would you expand on option 2.
>
> A Java thread is a sequence of execution of Java bytecode on a JVM.
> Obviously, there can be multiple threads per J
CurrentThread().sleep( 100 ); // or so, I'm not sure
}
}
}
- Original Message -
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 8:00 PM
Subject: RE: crontab problems
>
>
> R
- Original Message -
From: "Ayhan Peker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 1:29 AM
Subject: crontab problems
> Hi everybody ,
> I have a problem..I am trying to write an application , which will run
from
> crona
Would you expand on option 2.
Why is this a thread rather than a java app that is started on system
startup ?
Ron
-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 12:50 PM
To: Tomcat Users List
Subject: Re: crontab problems
There'
ROTECTED]>
Sent: Tuesday, February 25, 2003 6:16 PM
Subject: RE: crontab problems
>
> No, I guess that would work. It just seems to be needlessly complicated
and
> resource intensive. You normally don't consider a program crashing as
> normal behavior. The point of a moni
MAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 12:06 PM
> To: Tomcat Users List
> Subject: RE: crontab problems
>
>
> Am I right to think that if jvm crashes...Once writing to
> core file is
> finished, jvm can be restarted..(that is what we have been doing--jvm
> cr
:43 AM
> To: Tomcat Users List
> Subject: RE: crontab problems
>
>
> I have no problems with tomcat...
>
> But sometimes under heavy load jvm 1.4 crashes...
> see the links:
>
> Ok this is the bug:
> http://developer.java.sun.com/developer/bugParade/bugs/4779653.
wrote:
>
> >Yes, Tomcat is generally very stable. But: Trust, but verify. ;)
> >
> >John
> >
> > > -Original Message-----
> > > From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, February 25, 2003 9:23 AM
> > > To
bruary 25, 2003 9:23 AM
> To: Tomcat Users List
> Subject: Re: crontab problems
>
>
> Yes, using wget is probably the second best solution. The
> best one is to
> find the reason why Tomcat crashes at all, since it generally
> is a stable
> and reliable product.
>
> Cr
Yes, Tomcat is generally very stable. But: Trust, but verify. ;)
John
> -Original Message-
> From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 9:23 AM
> To: Tomcat Users List
> Subject: Re: crontab problems
>
>
> Yes, using wge
be ok too. But that's a matter
of taste, really.
- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 3:00 PM
Subject: RE: crontab problems
>
&g
er, and a whole bunch of
others.
John
> -Original Message-
> From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 6:29 AM
> To: Tomcat Users List
> Subject: Re: crontab problems
>
>
> Right, you might also just put
>
> JAVA_HOME=...
his out of my head ...
- Original Message -
From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 10:43 AM
Subject: RE: crontab problems
You have to make shure that your script retstart_t
ALINA_BASE JAVA_OPTS
./startup.sh
> -Original Message-
> From: Ayhan Peker [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 10:30 AM
> To: [EMAIL PROTECTED]
> Subject: crontab problems
>
> but the last two lines returns
> /
> The
Hi everybody ,
I have a problem..I am trying to write an application , which will run from
cronatb on linux...
My application runs without a problem when i try it from the command
line..BUT NOT FROM CRONTAB...
The challenge is: if jvm crashes i want to restart tomcat
my code is :
String[] com
47 matches
Mail list logo