Solved

Help with determining how much resources each script is taking...

Posted on 2003-12-02
5
160 Views
Last Modified: 2013-12-24
7461 apache    25   0  151M 115M  2896 S    10.3 23.3  70:15   0 cfusion
 3388 mysql     20   0  6348 4804  1212 S     3.7  0.9  96:15   0 mysqld

23% memory and 10% cpu... is that normal? All I have is one semi high traffic dating site. Is there any way I can tell which script is taking the most resources,etc ?
0
Comment
Question by:fozzynet
5 Comments
 
LVL 6

Accepted Solution

by:
PE_CF_DEV earned 63 total points
ID: 9863731
It all depends on how busy the site is and how many queries the site uses. I know we found huge resource hogs in our website due to unnesecary or bloated queries to the database. Our Site (an ecommerce site) generally hovers around 128-200 megs of memory and jumps all over for CPU useage.

As for logging reasource's for certain scripts what version of coldfusion are you running?

You can always log pages that take longer that X ms to execute.
0
 

Author Comment

by:fozzynet
ID: 9863742
I'm using coldfusion mx 6.1.
0
 
LVL 17

Assisted Solution

by:anandkp
anandkp earned 62 total points
ID: 9864128
enable the debugging mode on ur CFServer & specify a IP address - this way u'll get to know - which pages / queries are taking longer to execute.

u cld then fine tune these queries / pages - in order to improve performance. the server will by default log pages that take longer to execute & u can check these pages thru application.log.

a lot wld depend on what harware u have & what kinda users ur catering to - as it depends how many hits u may have each day & what kinda features are u providing them [especially wrt searches]

I've had 2 dating sites lauched in the past & just suggesting based on exp from that.

U'll need regular checks on ur DB & will have to allocate appropriate space as the number of users on ur site increase day by day.

ur very lucky to have 23% memory & 10% cpu usuage on ur site ;) with me it was hovering around 90 % ... but like i said a lot depends on how ur site is structured & what u have to offer to ur users.

if everything is preplanned & with this percentage of memory usuage - u dont need to bother at all !

K'Rgds
Anand
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now