RAM-Problem mit Rails + Passenger

Pionier

New Member
Hallo,

ich habe ein keines Problem mit meinem RAM, wenn ich Redmine starte.
Ich habe meinen vServer so eingestllt, dass Confixx, Apache2, MySQL, Postfix, SVN, usw ca 180MB RAM brauchen.

Wenn ich nun den Passenger im Apache aktiviere, steigt der RAM-Verbrauch auf ca 287MB (habe nur 300MB), was eine erhebliche Systeminstabilität verursacht.

Wie kann ich den Verbrauch von Rails und Passenger eindämmen?
 
Zum Beispiel mit der Ruby Enterprise Edition (und ja, der Name ist ziemlich dämlich...).

Eine weitere Option ist eine Einstellung im Passenger, die ich heute gefunden habe.
5.12.1. PassengerMaxPoolSize <integer>

The maximum number of Ruby on Rails or Rack application instances that may be simultaneously active. A larger number results in higher memory usage, but improved ability to handle concurrent HTTP clients.

The optimal value depends on your system’s hardware and the server’s average load. You should experiment with different values. But generally speaking, the value should be at least equal to the number of CPUs (or CPU cores) that you have. If your system has 2 GB of RAM, then we recommend a value of 30. If your system is a Virtual Private Server (VPS) and has about 256 MB RAM, and is also running other services such as MySQL, then we recommend a value of 2.

If you find that your server is unable to handle the load on your Rails/Rack websites (i.e. running out of memory) then you should lower this value. (Though if your sites are really that popular, then you should strongly consider upgrading your hardware or getting more servers.)

This option may only occur once, in the global server configuration. The default value is 6.
Quelle: Phusion Passenger users guide

Alleine durch diese Option läuft mein RAM nicht mehr über :D
Mal schauen, wie es wird, wenn ich Ruby Enterprise Edition installiert habe.
 
Last edited by a moderator:
Back
Top