Hey Group,

I have written a web.py website on my local machine. It has 4GB RAM
and a 8-core 1.6 Ghz processor. The written webapplication works nice
on my desktop.

The problem is that I now want to run it on my single-processor 256Mb
RAM server. My written application is obviously overkill for this
machine, but I don't know how or why.

This is how the webserver construction is:

1. a (self-written) module for getting/caching data from the database
2. web.py
3. web.py page-classes which server as controllers
4. Templates with Templetor

Next I run the server. Sometimes it starts, sometimes it does not (if
a php-fastcgi is running the server won't even start because of a
memory error). If I get the server started I can browser several
pages, but after that python starts complaining about memory issues.

Now comes the strange thing: The system reports no memory overload (in
fact, it says that only 75 Mb Mem is being used. Also the CPU is not
being exhausted.

What can be the problem? Is there really a memory overload? If yes,
why isn't that reported by the system? Can I fore my system to let
webpy use more RAM?


Note that if I test the self-written module myself with Ipython (and
storing the requested data in a memory cache), I don't get any memory
errors and the memory used grows to 100 MB (using ~30 Mb).

Hope some one can give me a clue of what is going on...
Thanks in advance!

=====

Errors vary, I will lost some:
SQLAlchemy:
OperationalError: (OperationalError) (1135, "Can't create a new thread
(errno 11); if you are not out of available memory, you can consult
the manual for a possible OS-dependent bug") None None

During template compilation(?):
  File "/home/project/web/template.py", line 1062, in frender
    return Template(open(path).read(), filename=path, **keywords)
  File "/home/project/web/template.py", line 847, in __init__
    code = self.compile_template(text, filename)
  File "/home/project/web/template.py", line 930, in compile_template
    import compiler
  File "/usr/lib/python2.6/compiler/__init__.py", line 27, in <module>
    from compiler.transformer import parse, parseFile
  File "/usr/lib/python2.6/compiler/transformer.py", line 29, in
<module>
    import parser

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to