Title: WordPress&#8217; Python Memory Usage Is High  / keeps bringing my server &amp; Apache down
Last modified: August 19, 2016

---

# WordPress’ Python Memory Usage Is High / keeps bringing my server & Apache down

 *  [PaulieP](https://wordpress.org/support/users/pauliep/)
 * (@pauliep)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-python-memory-usage-is-high-keeps-bringing-my-server-amp-apache-down/)
 * I’m trying to figure out what’s going on with my site.
 * I am now at a fast VPS with 1 gig of memory on the account, and I still get weird
   site outages a few times a day.
 * Why? It seems Apache is being stopped by errors and spikes in memory usage (causing
   shortage) from my wordpress site. According to the techs it is from Apache’s 
   use of python. They told me to optimize my scripts to reduce the memory outages.
 * Normally my site runs with like 300mb of ram free on the server and then both
   CPU and mem utilization spike.
 * Is this an exploit? Does WordPress even use python? What plugins might be doing
   it?
 * My active plugins are listed below. Also below are the logs from my host. Any
   insight or information appreciated. Thanks.
    List of currently active modules:
   Adminimize Akismet All in one SEO Audio Player Featured Content Gallery Google
   Analyticator Link Library Nextgen Gallery PageLinksTo Pierre’s Wordspew SI CAPTCHA
   Anti-Spam Sidebar Login Simple:Press forum Sociable The Events Calendar Twitter
   Widget Pro WP-Polls WP-Paginate WP-UserOnline
 * Email from hosting tech:
    “Hello,
 * On checking the logs, I can see that the memory shortage on the server is due
   to apache calling python modules on the server. The logs are pasted below:
 * +++++
    [Mon Jun 21 11:27:21 2010] [error] make_interpreter: Py_NewInterpreter()
   returned NULL. No more memory? [Mon Jun 21 11:27:21 2010] [error] get_interpreter:
   cannot get interpreter data (no more memory?) [Mon Jun 21 11:28:32 2010] [error]
   make_obcallback: could not import mod_python.apache.\n Traceback (most recent
   call last): File “/usr/lib/python2.4/site-packages/mod_python/apache.py”, line
   22, in ? import time ImportError: /usr/lib/python2.4/lib-dynload/timemodule.so:
   failed to map segment from shared object: Cannot allocate memory [Mon Jun 21 
   11:28:32 2010] [error] python_handler: no interpreter callback found. [Mon Jun
   21 11:34:11 2010] [error] make_obcallback: could not import mod_python.apache.\
   n Traceback (most recent call last): File “/usr/lib/python2.4/site-packages/mod_python/
   apache.py”, line 22, in ? import time ImportError: /usr/lib/python2.4/lib-dynload/
   timemodule.so: failed to map segment from shared object: Cannot allocate memory[
   Mon Jun 21 11:34:11 2010] [error] python_handler: no interpreter callback found.
   +++++
 * It seems that your scripts are using python modules. Please optimize your scripts
   to avoid resource usage.
 * Also, I have increased the MaxClients on the server to 200 to avoid apache from
   being restarted due to lack of child processes.”

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [atthila](https://wordpress.org/support/users/atthila/)
 * (@atthila)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wordpress-python-memory-usage-is-high-keeps-bringing-my-server-amp-apache-down/#post-1550845)
 * i have same problem, did you resolve ?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wordpress-python-memory-usage-is-high-keeps-bringing-my-server-amp-apache-down/#post-1550846)
 * WordPress runs under PHP, not Python.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress’ Python Memory Usage Is High / keeps bringing my server & Apache
down’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/wordpress-python-memory-usage-is-high-keeps-bringing-my-server-amp-apache-down/#post-1550846)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
