mnot

mt.comments.cgi memory usage under FCGI

Vote 0 Votes

Hi,

I recently converted my old MT2.6 system to 4.35, running under FCGI.

Since then, I've noticed that the running mt_comments.cgi process uses a fair amount of memory; typically, about 40M (without shared libraries).

Are other people seeing this, and is there anything that I can do to reduce its memory use? I'm running on a system where 40M is a lot of memory to waste...

Thanks!

Reported on Movable Type 4.3

6 Replies

| Add a Reply
  • Are other people seeing this, and is there anything that I can do to reduce its memory use? I'm running on a system where 40M is a lot of memory to waste...

    40Mb is actually prety modest for what a dynamic language running under FastCGI would require. What sort of system do you have where 40Mb is too much?

  • If you must know, it's a VPS. By many standards, 40M is anything but modest for a CGI script.

  • If you must know

    It would help...

    By many standards, 40M is anything but modest for a CGI script.

    The difference is that it's not CGI, it's FastCGI which means that your server doesn't bear the cost of activating that script once per request to it. If you server were getting slammed and every request cost 40MB of memory, I'd agree with you, but 40M for what mt-comments.cgi provides in overall functionality is low by modern standards.

    YMMV on that. I have done a lot of Java work. I know people who would kill to have responsive web applications that would use only that much memory.

  • Putting advocacy aside for a minute, what is the memory actually being used for? E.g., is MT keeping an index of all blog entries / comments / metadata in-memory? My original questions haven't been answered...

  • Movable Type loads a lot of shared modules and Perl has an inherent overhead in its own right. Some of it is also caching data. It's not keeping all of your database in memory, but it does cache quite a bit of information. I think the search script, in FastCGI mode, caches the result pages for search requests.

  • Seems I'm having a problem with this mt_comments.cgi as well now. Is there any way to reduce the server load? I don't quite understand these logs but I'm seeing this a lot now:

    Mar 18 10:52:04 bentley kernel: OOM killed process mt-comments.cgi (pid=9064, ve=278) exited, free=92930 gen=11164

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012