Help - Search - Members - Calendar
Full Version: Mt.cgi Is Being Killed By Hosting Company
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
Buckbeak
I complained to my hosting provider about error 500, resellerzoom and this is what they sent me:

CODE
Hello,

Thank you for contacting us. We have checked your issue. We have seen that your script is using excessive resources and our resource monitoring tool is killing your script. Please verify it from below:

----------------

Sat Mar  8 08:56:15 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi', Accessed from: 1.2.3.4) - of userid using 18.9453125 MB memory

Sat Mar  8 08:56:20 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi', Accessed from: 1.2.3.4) - of userid has used 10.2 %CPU

Sat Mar  8 08:58:03 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi', Accessed from: 1.2.3.4) - of userid has used 12.6 %CPU

Sat Mar  8 10:01:02 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi', Accessed from: 1.2.3.4) - of userid using 19.1328125 MB memory

Sat Mar  8 20:56:01 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi', Accessed from: 1.2.3.4) - of userid has used 16 %CPU

Sun Mar  9 10:41:23 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi', Accessed from: 1.2.3.4) - of userid using 18.9375 MB memory

Sun Mar  9 10:41:28 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi', Accessed from: 1.2.3.4) - of userid using 19.0546875 MB memory

Sun Mar  9 10:41:43 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi?__mode=list_widget&rebuild=1&blog_id=1', Accessed from: 1.2.3.4) - of userid has used 11.2 %CPU

Sun Mar  9 10:41:49 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi', Accessed from: 1.2.3.4) - of userid using 20.19921875 MB memory

Sun Mar  9 10:41:54 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi', Accessed from: 1.2.3.4) - of userid has used 10.4 %CPU

Mon Mar 10 12:25:49 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi?__mode=view&_type=entry&id=8&blog_id=1', Accessed from: 1.2.3.4) - of userid using 19.25 MB memory

Tue Mar 11 08:10:13 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi?__mode=list_entry&blog_id=1', Accessed from: 1.2.3.4) - of userid has used 10.2 %CPU

Tue Mar 11 13:03:44 2008: '/usr/bin/perl -w mt.cgi ' (Exe: mt.cgi [/usr/bin/perl], Script: '/home/userid/public_html/cgi-bin/mt/mt.cgi', Domain: www.website.com, Request: '/cgi-bin/mt/mt.cgi?__mode=view&_type=entry&id=9&blog_id=1', Accessed from: 1.2.3.4) - of userid using 19.078125 MB memory

Please check it from your end and make necessary modifications to the script. Please feel free to get back to us if you need any further assistance.

--------------------------------------------------------------------------------------------------------



I'm supposed to modify MovableType's scripts? Is there anything I can do NOW to reduce memory and CPU usage? Is 4.2 in beta and good enough to use? This is a very unfortunate situation.
Buckbeak
Sorry to reply to my own topic, but I've been thinking about this issue:

1. Why is it that I can perform some action and get my script killed, and then go back and do the same thing again 10 seconds later and it works just fine?

2. Could my hosting provider (or the browser) be doing something that causes the cgi script to "hang-around" after the page has been rendered? For example, could the script be being reused over and over without really ending and thus making its CPU and memory usage appear worse than it is?

3. Are there any profiling tools available for Perl that could be used to determine what section is using the most resources?

4. Are there any options that can be placed in the cgi script to limit its use of resources?
Alden Bates
QUOTE (Buckbeak @ Mar 11 2008, 04:18 PM) *
I'm supposed to modify MovableType's scripts? Is there anything I can do NOW to reduce memory and CPU usage? Is 4.2 in beta and good enough to use? This is a very unfortunate situation.


You could take a look at the plugins you have installed. Possibly remove some and see if it helps the situation.

Alden
Buckbeak
Well, I ended up dumping resellerzoom. I'm sure they're fine for regular PHP based blogs, but MT seemed to be too resource intensive for them. They kept killing my processes which caused MT to get an error 500.

I went with a VPS hosting provider where they give you your own virtual machine to run anyway you like and guess what? I haven't had the error 500 since.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.