Did you check how much memory the old campsite used? How many templates and how big they are? Please open a shell console and type: ps faxu. Send me a screenshot.
I was talking to Sava yesterday and he asked me to report this to the list.
We upgraded Ammannet from Campsite 2.1.5 to Campsite 2.5 . We got an identical server, installed Campsite 2.5 and designed the new ammannet site on it, then moved the old 2.1.5 database from ammannet server to the new one and then changed the dns to point to the new server.
With the new server, we notice that Campsite is using lots of memory. We have php wrapper installed on ammannet which we think might have something to do with the memory load. Here is a screenshot of the processes running on the server:
campsite instance is ammannet instance. You can see that it's using 116 MB of memory. awrd, intekhabat and cdfj instances are under development. There is only one person accessing these instances and each one is consuming 40 MB of memory. Also are the httpd instances caused by the php wrapper (since it opens an internal request to apache server). Every httpd process is consuming 27 MB or memory.
You didn't answer the other questions: did you check how much memory 2.4 used for the same sites (the same database and templates)? How many templates and how big they are?
Regarding the memory:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
...
apache 13533 0.8 2.8 27384 14340 ? S 09:32 3:06 \_ /usr/sbin/httpd
...
apache 4626 9.3 1.5 116076 7724 ? Ssl 08:11 41:25 /usr/local/campsite/bin/campsite_server -i campsite
What you saw on the web interface is the virtual memory size which is the 'virtual' memory the process uses. Why virtual? Because it sums up the memory used by all libraries accessed by the process. But these libraries are shared by all processes that use them so this IS NOT a reliable way of measuring the process memory. The real memory used by the process is RSS: 14340 for apache and 7724 for campsite.
Also, in case of a big site with many templates, many topics the template engine uses more memory to cache them.