Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Gforum with plugins under mod_perl

Quote Reply
Gforum with plugins under mod_perl
Hi, I am running Gforum under mod_perl.

Should the plugins be pre-loaded also?

if yes how should this be done? by adding them in GForum::mod_perl?

I have six plugins installed in Plugins/GForum.

Thanks for any help.

Mike

Mike

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum
Quote Reply
Re: [CRUZN8R] Gforum with plugins under mod_perl In reply to
It isn't required that you preload them into mod_perl, though by doing so you can slightly lower the overall memory usage (since all the mod_perl processes will share the loaded modules, instead of each loading the plugins independently), and slightly speed up the first request that loads the plugins. It won't, however, break anything to not load them under mod_perl - for that matter, you can run any of our programs without preloading them at all - it's just wasteful of system resources and noticeably slower for the first few requests.

To load them into mod_perl, I'd just add these lines into your startup file, after the 'require GForum::mod_perl;' line:

require Plugins::GForum::FirstPlugin;
require Plugins::GForum::SecondPlugin;
etc.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Gforum with plugins under mod_perl In reply to
Hi, thanks

Sorry I am new to mod_perl.

So does this mean that if I don't preload them in the startup.pl, they will load into mod_perl memory anyway when they are executed because they are located in the /path/to/gforum/admin ?

Mike

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum
Quote Reply
Re: [CRUZN8R] Gforum with plugins under mod_perl In reply to
One thing to be aware of though is that not all plugins are mod_perl compatible.
Quote Reply
Re: [CRUZN8R] Gforum with plugins under mod_perl In reply to
In Reply To:
So does this mean that if I don't preload them in the startup.pl, they will load into mod_perl memory anyway when they are executed because they are located in the /path/to/gforum/admin ?

Yes, but it is more efficient to load them in advance. However, as plugins as usually small, this shouldn't make much difference either way.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [CRUZN8R] Gforum with plugins under mod_perl In reply to
I had to take GForum out of mod_perl, it was hogging 250 megs of memory and slowing the server.
Maybe there is a memory leak in one of my plugins, or I did not have the server configured properly for mod_perl.

I was not using the recomended /perl/ directory, just had it loading from cgi-bin/gforum/admin.
May try the /perl/ directory sometime.

Mike

512 meg ram, perl 5.6.1, mod_perl 1.24_01, Apache 1.3.27, Redhat 7.1 Linux

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum
Quote Reply
Re: [CRUZN8R] Gforum with plugins under mod_perl In reply to
Try it without the plugins, as we run this forum under mod_perl without leaks. If you manage to track down which plugin causes the link, it would be very useful to know.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [CRUZN8R] Gforum with plugins under mod_perl In reply to
I'm experiencing the same problem, the httpd process is leaking memory as hell and it increases considerably when I use the forums.
Quote Reply
Re: [jaltuve] Gforum with plugins under mod_perl In reply to
It's probably due to a plugin.
Quote Reply
Re: [jaltuve] Gforum with plugins under mod_perl In reply to
Quote:
I'm experiencing the same problem, the httpd process is leaking memory as hell and it increases considerably when I use the forums.

First off, are you preloading all modules at mod_perl startup as described in the readme? If you only have Gossamer Forum, you can expect the size of each httpd to be around 18 megs (but almost all of that will be shared between children). If you don't preload at startup, then Apache will start at 3-4 megs, and grow to about 18, but should then stablize. So while it looks like it's leaking, it should stop.

Cheers,

Alex
--
Gossamer Threads Inc.