Re: Memory usage of dmd

2014-11-12 Thread olivier henley via Digitalmars-d-learn
All this is very interesting. Thx for the scripts, thx for pointing systemd. We need to document that stuff somewhere... more indexable.

Memory usage of dmd

2014-11-10 Thread Xavier Bigand via Digitalmars-d-learn
I develop a web site with vibe, but because I am using a Virtual Private Server I get some memory issues. The server only has 1Go of memory ( 900Mo free) and it seems I can't compile directly on it a simple static page (70 lines). I get the following message when building with dub : Running

Re: Memory usage of dmd

2014-11-10 Thread Etienne via Digitalmars-d-learn
On 2014-11-10 11:32 AM, Xavier Bigand wrote: Is there some options can help me to reduce the memory consumption? As it's for production purpose I don't think that is a good idea to remove compiler optimizations. The memory issues are probably related to diet templates. LDC and GDC won't

Re: Memory usage of dmd

2014-11-10 Thread bearophile via Digitalmars-d-learn
Xavier Bigand: So for the moment I build the web site on a physical machine, and I saw the compilation takes around 1.6Go of memory. Compiling the whole Phobos as a single compilation unit on 32 bit DMD requires a little more than 1 GB. Bye, bearophile

Re: Memory usage of dmd

2014-11-10 Thread Xavier Bigand via Digitalmars-d-learn
Le 10/11/2014 17:41, Etienne a écrit : On 2014-11-10 11:32 AM, Xavier Bigand wrote: Is there some options can help me to reduce the memory consumption? As it's for production purpose I don't think that is a good idea to remove compiler optimizations. The memory issues are probably related to

Re: Memory usage of dmd

2014-11-10 Thread Etienne via Digitalmars-d-learn
On 2014-11-10 12:02 PM, Xavier Bigand wrote: As I know to be able to have no down time with vibe we need to be able to build directly on the server where the program runs. Maybe I just need to wait that I have some users to pay a better server with more memory. With a low number of users,

Re: Memory usage of dmd

2014-11-10 Thread Xavier Bigand via Digitalmars-d-learn
Le 10/11/2014 18:17, Etienne a écrit : On 2014-11-10 12:02 PM, Xavier Bigand wrote: As I know to be able to have no down time with vibe we need to be able to build directly on the server where the program runs. Maybe I just need to wait that I have some users to pay a better server with more

Re: Memory usage of dmd

2014-11-10 Thread via Digitalmars-d-learn
If your server runs systemd, I would strongly recommend to use that instead of a shell script. You can use Restart=always or Restart=on-failure in the unit file. It also provides socket activation, which will allow you to restart the program without downtime.

Re: Memory usage of dmd

2014-11-10 Thread Etienne via Digitalmars-d-learn
On 2014-11-10 2:52 PM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: If your server runs systemd, I would strongly recommend to use that instead of a shell script. You can use Restart=always or Restart=on-failure in the unit file. It also provides socket activation, which will allow you