Jrun 99%

View: New views
7 Messages — Rating Filter:   Alert me  

Jrun 99%

by Robert Walters-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So I am still battling with jrun.exe hitting 99% of my server CPU on a
regular basis.  I followed MACR, SARGE, and Forta's book and tweaked
this thing for weeks.  All our apps are low key and cache results so
that it takes down CF overhead.  But every hour or so it still hits
99%.  We tweaked CF admin and the jrun config file.

Does anyone have working settings for Windows 2003 with IIS 6?  We
cannot figure it out.

The real funny thing is that our server has an average of under 1 user
at a time.  Talking about a low load server that doesn't work.  What
happens when the site starts really getting used?  Do we have to switch
to ASP or PHP?

Thanks....Rob Walters

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Stay Ahead of Hackers - Download ZoneAlarm Pro
http://www.houseoffusion.com/banners/view.cfm?bannerid=65

Message: http://www.houseoffusion.com/lists.cfm/link=i:8:5709
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/8
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:8
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Parent Message unknown RE: Jrun 99%

by Stephen Dupre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"About every hour or so" sounds suspicious and familiar.   Are you using 6.1 or 7.0?
 
Do you run any scheduled tasks on the hour?    Does it go down or stay at 99% until you reboot?  
 
We have ONE administrative scheduled tasks that CF does.... client variables.  If you have them in the registry and you have > 10,000 of them, the processing of "expiring" 90 day old clients through the registry is CPU intensive.
 
If you could get a stack trace (technote 18339 - http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18339) we could at least see what's going on during the 99%.
 
You have to start JRun from the command line.
 
jrun -start default (6.1)
jrun -start cfusion or coldfusion (7.0 - depending on edition).
 
When you see it start to spike, set focus to the DOS Window (click the title bar a few times and hit <NL>) and hit Control+(Pause/Break) (not control-C which everyone does by instinct - that kills JRun).
 
If you can get me a stack trace during the 99% CPU (it will be difficult so have your cursor over the Window and FOCUS on the DOS window ready to go.
 
Stephen Dupre
Macromedia QA

________________________________

From: Robert Walters [mailto:rwalters@...]
Sent: Mon 7/18/2005 5:40 PM
To: JRun-Talk
Subject: Jrun 99%



So I am still battling with jrun.exe hitting 99% of my server CPU on a
regular basis.  I followed MACR, SARGE, and Forta's book and tweaked
this thing for weeks.  All our apps are low key and cache results so
that it takes down CF overhead.  But every hour or so it still hits
99%.  We tweaked CF admin and the jrun config file.

Does anyone have working settings for Windows 2003 with IIS 6?  We
cannot figure it out.

The real funny thing is that our server has an average of under 1 user
at a time.  Talking about a low load server that doesn't work.  What
happens when the site starts really getting used?  Do we have to switch
to ASP or PHP?

Thanks....Rob Walters



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:8:5711
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/8
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:8
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Parent Message unknown RE: Jrun 99%

by Gaulin, Mark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I highly recommend this approach... I used it last week to figure out a problem I *never* would have found on my own.  One thing: For 6.1 at least, you don't have to run jrun from the command linel; if you change the service to "interact with desktop" and restart it, it will open a command window and you can ctrl-break in it to create the dumps, which go the one of the jrun log files.  You need to be able to connect to the machine's desktop to use this approach though.
Good luck.
  Mark

________________________________

From: Stephen Dupre [mailto:sdupre@...]
Sent: Mon 7/18/2005 8:07 PM
To: JRun-Talk
Subject: RE: Jrun 99%



"About every hour or so" sounds suspicious and familiar.   Are you using 6.1 or 7.0?

Do you run any scheduled tasks on the hour?    Does it go down or stay at 99% until you reboot?  

We have ONE administrative scheduled tasks that CF does.... client variables.  If you have them in the registry and you have > 10,000 of them, the processing of "expiring" 90 day old clients through the registry is CPU intensive.

If you could get a stack trace (technote 18339 - http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18339) we could at least see what's going on during the 99%.

You have to start JRun from the command line.

jrun -start default (6.1)
jrun -start cfusion or coldfusion (7.0 - depending on edition).

When you see it start to spike, set focus to the DOS Window (click the title bar a few times and hit <NL>) and hit Control+(Pause/Break) (not control-C which everyone does by instinct - that kills JRun).

If you can get me a stack trace during the 99% CPU (it will be difficult so have your cursor over the Window and FOCUS on the DOS window ready to go.

Stephen Dupre
Macromedia QA

________________________________

From: Robert Walters [mailto:rwalters@...]
Sent: Mon 7/18/2005 5:40 PM
To: JRun-Talk
Subject: Jrun 99%



So I am still battling with jrun.exe hitting 99% of my server CPU on a
regular basis.  I followed MACR, SARGE, and Forta's book and tweaked
this thing for weeks.  All our apps are low key and cache results so
that it takes down CF overhead.  But every hour or so it still hits
99%.  We tweaked CF admin and the jrun config file.

Does anyone have working settings for Windows 2003 with IIS 6?  We
cannot figure it out.

The real funny thing is that our server has an average of under 1 user
at a time.  Talking about a low load server that doesn't work.  What
happens when the site starts really getting used?  Do we have to switch
to ASP or PHP?

Thanks....Rob Walters





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:8:5714
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/8
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:8
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Parent Message unknown RE: Jrun 99%

by Stephen Dupre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> if you change the service to "interact with desktop"  <<
Very good point.  I run my servers this way.  The other benefit is it's still a service so if the problem takes JRun down, the jrunsvc.exe will restart the service - something that doesn't happen when you run command line.  
 
Actually stack traces are a poor (though necessary) tool from the CF developer standpoint.   It's not the information, it's the *presentation* that is lacking.  And, who wants to have to be around at 3:00AM just to get a stack trace when a particular hiccup happens?
 
The idea of CF MX is to hide java from the typical developer/user.   Stack traces by their very nature are snap shots.
A real-time utility to show all templates running - where you can drill down to WHICH LINE a slow or hanging template spends it's time  - plus any system events - would be far more useful for users that are debugging typical problems.
 
This type of debug utility is on the wish list for the next major version of CF and I hope it gets in.
 
Stephen Dupre
Macromedia QA

________________________________

From: Gaulin, Mark [mailto:mgaulin@...]
Sent: Tue 7/19/2005 7:28 AM
To: JRun-Talk
Subject: RE: Jrun 99%



I highly recommend this approach... I used it last week to figure out a problem I *never* would have found on my own.  One thing: For 6.1 at least, you don't have to run jrun from the command linel; if you change the service to "interact with desktop" and restart it, it will open a command window and you can ctrl-break in it to create the dumps, which go the one of the jrun log files.  You need to be able to connect to the machine's desktop to use this approach though.
Good luck.
  Mark

________________________________

From: Stephen Dupre [mailto:sdupre@...]
Sent: Mon 7/18/2005 8:07 PM
To: JRun-Talk
Subject: RE: Jrun 99%



"About every hour or so" sounds suspicious and familiar.   Are you using 6.1 or 7.0?

Do you run any scheduled tasks on the hour?    Does it go down or stay at 99% until you reboot?

We have ONE administrative scheduled tasks that CF does.... client variables.  If you have them in the registry and you have > 10,000 of them, the processing of "expiring" 90 day old clients through the registry is CPU intensive.

If you could get a stack trace (technote 18339 - http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18339) we could at least see what's going on during the 99%.

You have to start JRun from the command line.

jrun -start default (6.1)
jrun -start cfusion or coldfusion (7.0 - depending on edition).

When you see it start to spike, set focus to the DOS Window (click the title bar a few times and hit <NL>) and hit Control+(Pause/Break) (not control-C which everyone does by instinct - that kills JRun).

If you can get me a stack trace during the 99% CPU (it will be difficult so have your cursor over the Window and FOCUS on the DOS window ready to go.

Stephen Dupre
Macromedia QA

________________________________

From: Robert Walters [mailto:rwalters@...]
Sent: Mon 7/18/2005 5:40 PM
To: JRun-Talk
Subject: Jrun 99%



So I am still battling with jrun.exe hitting 99% of my server CPU on a
regular basis.  I followed MACR, SARGE, and Forta's book and tweaked
this thing for weeks.  All our apps are low key and cache results so
that it takes down CF overhead.  But every hour or so it still hits
99%.  We tweaked CF admin and the jrun config file.

Does anyone have working settings for Windows 2003 with IIS 6?  We
cannot figure it out.

The real funny thing is that our server has an average of under 1 user
at a time.  Talking about a low load server that doesn't work.  What
happens when the site starts really getting used?  Do we have to switch
to ASP or PHP?

Thanks....Rob Walters







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how to get a fax number that sends and receives faxes using your current email address
http://www.houseoffusion.com/banners/view.cfm?bannerid=64

Message: http://www.houseoffusion.com/lists.cfm/link=i:8:5715
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/8
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:8
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

RE: JRun tool (was Re: Jrun 99%)

by Douglas Knudsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stephen, this type of tool would be UBER USEFULL!!!!! Where can we vote on
it? Please make sure it works in a JRun cluster too, eh? Currently we can't
get any stats from the logging facilities in JRun when clustering instances.
 Wow, this is the first I've heard mention of this.
 DK

 On 7/19/05, Stephen Dupre <sdupre@...> wrote:

>
> >> if you change the service to "interact with desktop" <<
> Very good point. I run my servers this way. The other benefit is it's
> still a service so if the problem takes JRun down, the jrunsvc.exe will
> restart the service - something that doesn't happen when you run command
> line.
>
> Actually stack traces are a poor (though necessary) tool from the CF
> developer standpoint. It's not the information, it's the *presentation* that
> is lacking. And, who wants to have to be around at 3:00AM just to get a
> stack trace when a particular hiccup happens?
>
> The idea of CF MX is to hide java from the typical developer/user. Stack
> traces by their very nature are snap shots.
> A real-time utility to show all templates running - where you can drill
> down to WHICH LINE a slow or hanging template spends it's time - plus any
> system events - would be far more useful for users that are debugging
> typical problems.
>
> This type of debug utility is on the wish list for the next major version
> of CF and I hope it gets in.
>
> Stephen Dupre
> Macromedia QA
>
> ________________________________
>
> From: Gaulin, Mark [mailto:mgaulin@...]
> Sent: Tue 7/19/2005 7:28 AM
> To: JRun-Talk
> Subject: RE: Jrun 99%
>
>
>
> I highly recommend this approach... I used it last week to figure out a
> problem I *never* would have found on my own. One thing: For 6.1 at least,
> you don't have to run jrun from the command linel; if you change the service
> to "interact with desktop" and restart it, it will open a command window and
> you can ctrl-break in it to create the dumps, which go the one of the jrun
> log files. You need to be able to connect to the machine's desktop to use
> this approach though.
> Good luck.
> Mark
>
> ________________________________
>
> From: Stephen Dupre [mailto:sdupre@...]
> Sent: Mon 7/18/2005 8:07 PM
> To: JRun-Talk
> Subject: RE: Jrun 99%
>
>
>
> "About every hour or so" sounds suspicious and familiar. Are you using 6.1or
> 7.0?
>
> Do you run any scheduled tasks on the hour? Does it go down or stay at 99%
> until you reboot?
>
> We have ONE administrative scheduled tasks that CF does.... client
> variables. If you have them in the registry and you have > 10,000 of them,
> the processing of "expiring" 90 day old clients through the registry is CPU
> intensive.
>
> If you could get a stack trace (technote 18339 -
> http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18339) we
> could at least see what's going on during the 99%.
>
> You have to start JRun from the command line.
>
> jrun -start default (6.1)
> jrun -start cfusion or coldfusion (7.0 - depending on edition).
>
> When you see it start to spike, set focus to the DOS Window (click the
> title bar a few times and hit <NL>) and hit Control+(Pause/Break) (not
> control-C which everyone does by instinct - that kills JRun).
>
> If you can get me a stack trace during the 99% CPU (it will be difficult
> so have your cursor over the Window and FOCUS on the DOS window ready to go.
>
> Stephen Dupre
> Macromedia QA
>
> ________________________________
>
> From: Robert Walters [mailto:rwalters@...]
> Sent: Mon 7/18/2005 5:40 PM
> To: JRun-Talk
> Subject: Jrun 99%
>
>
>
> So I am still battling with jrun.exe hitting 99% of my server CPU on a
> regular basis. I followed MACR, SARGE, and Forta's book and tweaked
> this thing for weeks. All our apps are low key and cache results so
> that it takes down CF overhead. But every hour or so it still hits
> 99%. We tweaked CF admin and the jrun config file.
>
> Does anyone have working settings for Windows 2003 with IIS 6? We
> cannot figure it out.
>
> The real funny thing is that our server has an average of under 1 user
> at a time. Talking about a low load server that doesn't work. What
> happens when the site starts really getting used? Do we have to switch
> to ASP or PHP?
>
> Thanks....Rob Walters
>
>
>
>
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Protect your mail server with built in anti-virus protection. It's not only good for you, it's good for everybody.
http://www.houseoffusion.com/banners/view.cfm?bannerid=39

Message: http://www.houseoffusion.com/lists.cfm/link=i:8:5716
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/8
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:8
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Parent Message unknown RE: Jrun 99%

by Gaulin, Mark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Actually in my case I wanted the java point of view, since it was java classes (3rd party, as it turned out) that were causing my problem.  You are right about having to be there to generate a stack trace... it would be nice to be able to communicate with the jvm to get it do that kind of thing via a script or external trigger.  
Mark

________________________________

From: Stephen Dupre [mailto:sdupre@...]
Sent: Tue 7/19/2005 8:11 AM
To: JRun-Talk
Subject: RE: Jrun 99%



>> if you change the service to "interact with desktop"  <<
Very good point.  I run my servers this way.  The other benefit is it's still a service so if the problem takes JRun down, the jrunsvc.exe will restart the service - something that doesn't happen when you run command line.  

Actually stack traces are a poor (though necessary) tool from the CF developer standpoint.   It's not the information, it's the *presentation* that is lacking.  And, who wants to have to be around at 3:00AM just to get a stack trace when a particular hiccup happens?

The idea of CF MX is to hide java from the typical developer/user.   Stack traces by their very nature are snap shots.
A real-time utility to show all templates running - where you can drill down to WHICH LINE a slow or hanging template spends it's time  - plus any system events - would be far more useful for users that are debugging typical problems.

This type of debug utility is on the wish list for the next major version of CF and I hope it gets in.

Stephen Dupre
Macromedia QA

________________________________

From: Gaulin, Mark [mailto:mgaulin@...]
Sent: Tue 7/19/2005 7:28 AM
To: JRun-Talk
Subject: RE: Jrun 99%



I highly recommend this approach... I used it last week to figure out a problem I *never* would have found on my own.  One thing: For 6.1 at least, you don't have to run jrun from the command linel; if you change the service to "interact with desktop" and restart it, it will open a command window and you can ctrl-break in it to create the dumps, which go the one of the jrun log files.  You need to be able to connect to the machine's desktop to use this approach though.
Good luck.
  Mark

________________________________

From: Stephen Dupre [mailto:sdupre@...]
Sent: Mon 7/18/2005 8:07 PM
To: JRun-Talk
Subject: RE: Jrun 99%



"About every hour or so" sounds suspicious and familiar.   Are you using 6.1 or 7.0?

Do you run any scheduled tasks on the hour?    Does it go down or stay at 99% until you reboot?

We have ONE administrative scheduled tasks that CF does.... client variables.  If you have them in the registry and you have > 10,000 of them, the processing of "expiring" 90 day old clients through the registry is CPU intensive.

If you could get a stack trace (technote 18339 - http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18339) we could at least see what's going on during the 99%.

You have to start JRun from the command line.

jrun -start default (6.1)
jrun -start cfusion or coldfusion (7.0 - depending on edition).

When you see it start to spike, set focus to the DOS Window (click the title bar a few times and hit <NL>) and hit Control+(Pause/Break) (not control-C which everyone does by instinct - that kills JRun).

If you can get me a stack trace during the 99% CPU (it will be difficult so have your cursor over the Window and FOCUS on the DOS window ready to go.

Stephen Dupre
Macromedia QA

________________________________

From: Robert Walters [mailto:rwalters@...]
Sent: Mon 7/18/2005 5:40 PM
To: JRun-Talk
Subject: Jrun 99%



So I am still battling with jrun.exe hitting 99% of my server CPU on a
regular basis.  I followed MACR, SARGE, and Forta's book and tweaked
this thing for weeks.  All our apps are low key and cache results so
that it takes down CF overhead.  But every hour or so it still hits
99%.  We tweaked CF admin and the jrun config file.

Does anyone have working settings for Windows 2003 with IIS 6?  We
cannot figure it out.

The real funny thing is that our server has an average of under 1 user
at a time.  Talking about a low load server that doesn't work.  What
happens when the site starts really getting used?  Do we have to switch
to ASP or PHP?

Thanks....Rob Walters









~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:8:5718
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/8
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:8
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Jrun 99%

by Gnanraj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Rob,

I saw you qurey, it might happen due to more no of threads running,  check for the no of threads in task manager.

I have a issue Rob, Could you tell what mignt be the issue? I can possible to run Jrun server using console mode, but when I start using services the application get inaccessible in few minutes, but jrun server is running in processes

Thanks
Gnanraj  

Robert Walters wrote:
So I am still battling with jrun.exe hitting 99% of my server CPU on a
regular basis.  I followed MACR, SARGE, and Forta's book and tweaked
this thing for weeks.  All our apps are low key and cache results so
that it takes down CF overhead.  But every hour or so it still hits
99%.  We tweaked CF admin and the jrun config file.

Does anyone have working settings for Windows 2003 with IIS 6?  We
cannot figure it out.

The real funny thing is that our server has an average of under 1 user
at a time.  Talking about a low load server that doesn't work.  What
happens when the site starts really getting used?  Do we have to switch
to ASP or PHP?

Thanks....Rob Walters

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Stay Ahead of Hackers - Download ZoneAlarm Pro
http://www.houseoffusion.com/banners/view.cfm?bannerid=65

Message: http://www.houseoffusion.com/lists.cfm/link=i:8:5709
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/8
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:8
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.8
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54