Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8669805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:33:53+00:00 2026-06-12T18:33:53+00:00

EDIT: It works now after getting rid of the processes in WSGIDaemonProcess I’ve been

  • 0

EDIT: It works now after getting rid of the “processes” in WSGIDaemonProcess

I’ve been having memory usage issues and wanted to monitor the possibility of memory leaks by using a wsgi middleware called dozer: http://pypi.python.org/pypi/Dozer.

Here are the apache error logs:

AssertionError: Dozer middleware is not usable in a multi-process environment

Here is the code snippet from wsgi.py:

from django.core.wsgi import get_wsgi_application
from dozer import Dozer
application = get_wsgi_application()
application = Dozer(application)

This code was all run in manage.py’s shell and there were no errors.

Here is the specific error that displays:

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

The installed dozer egg is up to date (python 2.7), maybe the server needs to be specially configured for something like this?

Here are my wsgi settings:

ServerRoot "/path/django/apache2"
LoadModule dir_module        modules/mod_dir.so
LoadModule env_module        modules/mod_env.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module       modules/mod_mime.so
LoadModule rewrite_module    modules/mod_rewrite.so
LoadModule setenvif_module   modules/mod_setenvif.so
LoadModule wsgi_module       modules/mod_wsgi.so

KeepAlive Off
Listen 28861
MaxSpareThreads 3
MinSpareThreads 1
ServerLimit 1
SetEnvIf X-Forwarded-SSL on HTTPS=1
ThreadsPerChild 5
WSGIDaemonProcess django threads=12 python-path=/path/django:/path/django/DareHut:/path/django/lib/python2.7
WGIProcessGroup django
WSGIRestrictEmbedded On
WSGILazyInitialization On
WSGIScriptAlias / /path/django/DareHut/DareHut/wsgi.py

What should I do? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:33:54+00:00Added an answer on June 12, 2026 at 6:33 pm

    Post the the mod_wsgi configuration from Apache and read:

    http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading

    For it to work you cannot use a multiprocess configuration.

    This means you cannot use mod_wsgi embedded mode on a UNIX system.

    Even when you use daemon mode, you must use a configuration where there is only a single process in the daemon process group.

    There is a caveat on doing that though. Do no use the ‘processes=1’ option to WSGIDaemonProcess to do that. You should leave out the ‘processes’ option altogether and let it default to a single process.

    Any use of the ‘processes’ option will cause ‘wsgi.multiprocess’ to be flagged as True, which will cause Dozer to complain. Any use of that option, even with the value ‘1’, triggering that flag is by design so it is possible to flag a server as part of a multiprocess arrangement, even with a single process, when load balancing across multiple Apache servers.

    So use:

    WSGIDaemonProcess mygroup
    WSGIProcessGroup mygroup
    

    Likely you have used the ‘processes’ option, or have forgot WSGIProcessGroup and aren’t actually running in daemon mode but in embedded mode by mistake.

    BTW, if you are seeing it as ‘200 Error’ in the tab label of the browser is a minor bug in mod_wsgi 3.4 (if that is what you are using). The return HTTP status code is still 500 as it should be so all is interpreted as it should, but mod_wsgi isn’t clearing the status line properly so Apache will replace it with its own 500 status line and so the status line used in the tab label is wrong.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: This code now works correctly, I only left it in case someone finds
SELECT works, Edit button works, but after editing, when I press Save the Grid
EDIT: It works but it takes amazingly long to complete. Is this normal, or
EDIT: I realized that this code compiles and works: #include <iostream> template<class Something> class
EDIT: My main code no longer works, should this function work? <script type=text/javascript src=jquery-1.7.2.js></script>
[edit] So it seems my code works fine, another piece of code + tiredness
This works: Entities.WorkOrderSet.Where(MyCustomMethod); This does not: Entities.WorkOrderSet.Where(o => MyCustomMethod(o)); ( [Edit] Even without new
I use edit-in-place plugin: http://arashkarimzadeh.com/jquery/7-editable-jquery-plugin.html I't works Great! I just need something to check
I have a software solution for Exchange 2000/2003/2007 and now hopefully after this for
Edit: While my comments have an iOS 5 working example, I am still getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.