Hi guys!

First of all, thanks for all help, I was busy on a project last week
and could not dig into the problem.
Let me remeber the thread, I having a problem, sometimes my server
stuck and goes down, just before it happens, I receive many messages
telling "Too many connections". I use apache + mod_python combination
on a Suse server, the version of my package is:

apache2-mod_python-3.1.3-60
apache2-prefork-2.2.0-21.7
mysql-5.0.18-20.8
python-2.4.2-18.10
django-0.96-pre
MySQLdb-1.2.1_p2 [*]

[*] the version of MySQLdb is an older version that do not get messy
with my character set

I didn´t get any other stuck after august, 8 (my last message) but I´m
disabling traceback email messages on fridays and re-enabling on
mondays. The RAM usage oscilate between 1GB and 3GB during these
period, I think it is ok. I don´t use MaxRequestPerChild directive, is
it a good practise?

I read recomendations to change from apache+mod_python to apache
+mod_wsgi, this way I will have just one instance of python (am I
right?), reather than n instances created by apache/mod_python.

Thanks for all help!
I wrote the traceback bellow:

Traceback (most recent call last):

  File "/usr/lib64/python2.4/site-packages/django/core/handlers/
base.py", line 74, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/lib64/python2.4/site-packages/django/utils/
decorators.py", line 20, in _wrapped_view
    response = view_func(request, *args, **kwargs)

  File "/home/mrape/django/portal/common/views.py", line 56, in home
    context['sponsored'] = (sponsored and sponsored[0]) or None

  File "/usr/lib64/python2.4/site-packages/django/db/models/query.py",
line 100, in __len__
    return len(self._get_data())

  File "/usr/lib64/python2.4/site-packages/django/db/models/query.py",
line 430, in _get_data
    self._result_cache = list(self.iterator())

  File "/usr/lib64/python2.4/site-packages/django/db/models/query.py",
line 170, in iterator
    cursor = connection.cursor()

  File "/usr/lib64/python2.4/site-packages/django/db/backends/mysql/
base.py", line 100, in cursor
    self.connection = Database.connect(**kwargs)

  File "/usr/local/lib64/python2.4/site-packages/MySQLdb/__init__.py",
line 75, in Connect
    return Connection(*args, **kwargs)

  File "/usr/local/lib64/python2.4/site-packages/MySQLdb/
connections.py", line 164, in __init__
    super(Connection, self).__init__(*args, **kwargs2)

OperationalError: (1040, 'Too many connections')


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to