Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Application variables...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SiSL
Average Member

Turkey
671 Posts

Posted - 17 December 2008 :  12:33:03  Show Profile  Visit SiSL's Homepage  Reply with Quote
I'm wondering if there is any way to make them less CPU demanding...

Over 12,000 visitors browsing at same time, I wonder how much impact to those make on CPU. Is there any theorical ideas about it?

Let's put another way, I'm running on 2x dual Xeon 3.6, 8gb's of RAM server. CPU hits 100% most of time (SQL handled by another server), just talking about IIS now. I wonder how much CPU power wasted if I put config.asp included in all of them rather than mini version of it, if they are not browsing forum pages...

Any experiences from those who work in such large scale?
<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 17 December 2008 12:34:03

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 December 2008 :  12:40:17  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Only a copy of application variables is maintained at the server. Session variables are different, though, those yes there will a copy for each visitor.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 17 December 2008 :  12:57:03  Show Profile  Visit HuwR's Homepage  Reply with Quote
the forum uses very little cpu and memory even in very busy scenarios. you need to do something to find out wht is using 100% of your cpu, because I doubt very much that it is the forum (not a standard one any way)<
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 17 December 2008 :  13:03:29  Show Profile  Visit SiSL's Homepage  Reply with Quote
Well, I don't doubt about forum, just trying to figure what's taking so much cpu (I'm checking every bit of sql's etc; mind you, I should give every possibility a chance so asking to experts of here and including "this cpu is not enough for 12K visitors" chance too)

ruirib, ofcourse only copy of application variables but all of them requested (a long long list you know with all mods and such) in every page, just curious if it requires extra cpu powers)

I'm suspecting firstly my mods, especially ActiveUsers one. But don't want to blame any mod that before knowing it...

Another curiosity: Can bandwidth limit (ISP sided) cause impact on CPU per request, long sending timers etc?

PS: That's why a clean-up with 3.4.0.7 would help me a lot to figure out :)

Another funny note for example, it was really interesting to figure out, doing FT search with multi-tables like "TOPICS, MEMBERS and querying membername and topic subject was taking hella a lot more cpu power and timer than querying table twice, once for topics and once for members and union distinct results :)


<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 17 December 2008 13:13:56
Go to Top of Page

gary b
Junior Member

USA
267 Posts

Posted - 18 December 2008 :  18:51:19  Show Profile  Visit gary b's Homepage  Reply with Quote
Wouldn't a review on Task Manager processes show which 'service(s)' is(are) consuming the cpu time? What if it is some other process that is in no way tied to SQL/web server/forum? Or perhaps you have already done this?

Any other apps on web server? Turn forum off... let web server run. What is cpu usage? Limit number of connections... what impact on cpu?

Website stats available? What page hit most? Does that page call anything in particular? Any chance of a code 'loop'?

Just some thoughts...
<
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 18 December 2008 :  19:51:04  Show Profile  Visit SiSL's Homepage  Reply with Quote
quote:
Originally posted by gary b

Wouldn't a review on Task Manager processes show which 'service(s)' is(are) consuming the cpu time? What if it is some other process that is in no way tied to SQL/web server/forum? Or perhaps you have already done this?

Any other apps on web server? Turn forum off... let web server run. What is cpu usage? Limit number of connections... what impact on cpu?

Website stats available? What page hit most? Does that page call anything in particular? Any chance of a code 'loop'?

Just some thoughts...




That's what I'm wondering... That is not visible until visitor number over 7000 at same time... Since I'm using forum as main user database and such for whole site, there is no way I can stop forum only, because config, inc_func_common etc. all loaded on all pages. I have made a mini_config.asp which does not include Application variables etc. post DB opening and put that on most popular non-forum pages, but so far, didn't hit big user numbers. Will see what's going to happen soon enough.

Then W3WP (single web site on IIS) jumps over 70% to 100%
<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 18 December 2008 20:01:27
Go to Top of Page

gary b
Junior Member

USA
267 Posts

Posted - 19 December 2008 :  15:04:27  Show Profile  Visit gary b's Homepage  Reply with Quote
Access or SQL database?<
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 19 December 2008 :  16:39:41  Show Profile  Visit SiSL's Homepage  Reply with Quote
SQL 2008. However the server that SQL server is on has good CPU loads and seems fine and not that high at all.
<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 19 December 2008 16:40:57
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 19 December 2008 :  17:46:27  Show Profile  Reply with Quote
Download & install SysInternals' Process Explorer. Open Task Manager, go to View/Select Columns and enable the PID. When your CPU peaks, run the Proc Explorer and see what the PID using up the bulk of the CPU is associated with. A common culprit seems to be the DNSCache ("dnsrslvr.dll") but it uses svchost and NETWORK SERVICE in Task Manager.

Find the applicable dll, kill the process, and move the DLL out of Windows\System32. If it's part of Windows, the file will be replaced from the dllcache. That solves 90% + of this type of issue. Fixing the DNScache dll dropped my CPU usage from 95% to 5%.<
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 19 December 2008 :  17:59:42  Show Profile  Visit SiSL's Homepage  Reply with Quote
that's not svchost really, it is w3wp, basically web pool. IIS 6.0 web pool. Is there any tool to find which ASP file execution does the most cpu peak so I will take a close look at that?<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 19 December 2008 :  19:06:39  Show Profile  Reply with Quote
Which OS are you using? If Server 2003, look at this page. It will give you some guidance on how to use the existing (built-in) utilities.<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07