chiangf schrieb:
> Even after following the step-by-step instructions, I still get the
> same error. I asked on the hosting forum, and some of the users
> suggested that it may be because there isn't enough memory (my plan is
> 128MB).
I use a VPS with only 96 MB memory but with also the same amount of swap.
What kind of VPS do you have? Is it Xen or Virtuozzo/OpenVZ based? Or
something else? With Virtuozzo/OpenVZ, many providers give you no swap
memory at all and disable burst memory, so if your application memory
requirements exceed the available free memory, some process dies (may be
the application itself).
> Is this is a viable reason for the error? And if so, is there anything
> I can do to reduce the memory used? I'm not running any other
> applications (just TG for now). In the mailing list archives, I saw
> something about reducing the thread pool but it didn't elaborate on how
> to do it. Not sure if that will do anything.
Which web server are you running? Apache is a huge memory eater, esp. if
you are using the multiple-process/fork model (default) and with many
modules (e.g. PHP) enabled. I use the 'nginx' web server as a reverse
proxy in front of the CherryPy server and so far without an problems. It
only ever uses about 15 MB of memory.
Concerning the number of threads for CherryPy, the default umber in
production mode is 10. You can set it to something else in your
application config file (e.g. 'prod.cfg'):
server.thread_pool = 5
To further reduce memory usage, have a look what other system services
are runing, which you can disable. Candidates are for example:
- cupsys
- mysqld
- postgresql
- postfix
- exim
- unneeded getty processes on /dev/tty{2,3,4,5,6} (look in to /etc/inittab)
If all that doesn't help, I would consider changing the provider :-(
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---