1 (edited by mauricioarcas 2009-07-07 09:22:26)

Topic: Server crashes during peak hours

Hi ..

   How much RAM used iRedMail, my server has 512 MB, with 250 users and an average of 1500 emails a day.

  The server crashes during peak hours ..

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Server crashes during peak hours

Which component crashed? Any related log messages?

3 (edited by mauricioarcas 2009-07-07 22:50:39)

Re: Server crashes during peak hours

Hi
    the logs  ...

  Jul  7 02:55:30 amadeus kernel: lowmem_reserve[]: 0 0 0 0
Jul  7 02:55:30 amadeus kernel: Node 0 Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Jul  7 02:55:30 amadeus kernel: lowmem_reserve[]: 0 0 0 0
Jul  7 02:55:30 amadeus kernel: Node 0 HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Jul  7 02:55:30 amadeus kernel: lowmem_reserve[]: 0 0 0 0
Jul  7 02:55:31 amadeus kernel: Node 0 DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 2012kB
Jul  7 02:55:31 amadeus kernel: Node 0 DMA32: 12*4kB 8*8kB 1*16kB 1*32kB 3*64kB 3*128kB 2*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 2784kB
Jul  7 02:55:31 amadeus kernel: Node 0 Normal: empty
Jul  7 02:55:31 amadeus kernel: Node 0 HighMem: empty
Jul  7 02:55:31 amadeus kernel: 1835 pagecache pages
Jul  7 02:55:31 amadeus kernel: Swap cache: add 3432087, delete 3431807, find 1131452/1623042, race 11+8184
Jul  7 02:55:32 amadeus kernel: Free swap  = 17332kB
Jul  7 02:55:32 amadeus kernel: Total swap = 1048568kB
Jul  7 02:55:32 amadeus kernel: Free swap:        17332kB
Jul  7 02:55:32 amadeus kernel: 131056 pages of RAM
Jul  7 02:55:32 amadeus kernel: 3411 reserved pages
Jul  7 02:55:32 amadeus kernel: 18894 pages shared
Jul  7 02:55:32 amadeus kernel: 280 pages swap cached
Jul  7 02:55:33 amadeus kernel: Out of memory: Killed process 19266 (httpd).
Jul  7 02:55:33 amadeus kernel: httpd invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0
Jul  7 02:55:33 amadeus kernel:
Jul  7 02:55:33 amadeus kernel: Call Trace:
Jul  7 02:55:33 amadeus kernel:  [<ffffffff800c3a6e>] out_of_memory+0x8e/0x2f5
Jul  7 02:55:33 amadeus kernel:  [<ffffffff8000f2eb>] __alloc_pages+0x245/0x2ce
Jul  7 02:55:34 amadeus kernel:  [<ffffffff80012a62>] __do_page_cache_readahead+0x95/0x1d9
Jul  7 02:55:34 amadeus kernel:  [<ffffffff80063a04>] __wait_on_bit_lock+0x5b/0x66
Jul  7 02:55:34 amadeus kernel:  [<ffffffff8810ad4d>] :dm_mod:dm_any_congested+0x38/0x3f
Jul  7 02:55:34 amadeus kernel:  [<ffffffff80013401>] filemap_nopage+0x148/0x322
Jul  7 02:55:34 amadeus kernel:  [<ffffffff80008863>] __handle_mm_fault+0x1f8/0xe5c
Jul  7 02:55:34 amadeus kernel:  [<ffffffff8002df7c>] __wake_up+0x38/0x4f
Jul  7 02:55:34 amadeus kernel:  [<ffffffff80066b9a>] do_page_fault+0x4cb/0x830
Jul  7 02:55:35 amadeus kernel:  [<ffffffff80063097>] thread_return+0x62/0xfe
Jul  7 02:55:35 amadeus kernel:  [<ffffffff80033502>] do_setitimer+0x3ef/0x4b7
Jul  7 02:55:35 amadeus kernel:  [<ffffffff8005dde9>] error_exit+0x0/0x84
Jul  7 02:55:35 amadeus kernel:
..........................
Jul  7 02:56:35 amadeus kernel: Node 0 HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Jul  7 02:56:36 amadeus kernel: lowmem_reserve[]: 0 0 0 0
Jul  7 02:56:36 amadeus kernel: Node 0 DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 2012kB
Jul  7 02:56:36 amadeus kernel: Node 0 DMA32: 21*4kB 4*8kB 3*16kB 0*32kB 3*64kB 3*128kB 2*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 2788kB
Jul  7 02:56:36 amadeus kernel: Node 0 Normal: empty
Jul  7 02:56:36 amadeus kernel: Node 0 HighMem: empty
Jul  7 02:56:36 amadeus kernel: 816 pagecache pages
Jul  7 02:56:36 amadeus kernel: Swap cache: add 4143658, delete 4143658, find 1203560/1780814, race 11+11473
Jul  7 02:56:37 amadeus kernel: Free swap  = 0kB
Jul  7 02:56:37 amadeus kernel: Total swap = 1048568kB
Jul  7 02:56:37 amadeus kernel: Free swap:            0kB
Jul  7 02:56:37 amadeus kernel: 131056 pages of RAM
Jul  7 02:56:37 amadeus kernel: 3411 reserved pages
Jul  7 02:56:37 amadeus kernel: 13818 pages shared
Jul  7 02:56:38 amadeus kernel: 0 pages swap cached
Jul  7 02:56:38 amadeus kernel: Out of memory: Killed process 21064 (httpd).

4 (edited by zietbukuel 2010-03-20 06:02:53)

Re: Server crashes during peak hours

I think 512mb of ram is too low for 250 users...

5

Re: Server crashes during peak hours

mauricioarcas wrote:

Hi ..

   How much RAM used iRedMail, my server has 512 MB, with 250 users and an average of 1500 emails a day.

  The server crashes during peak hours ..

512 MB is quiet enough for Win98  wink

mbsouth

6

Re: Server crashes during peak hours

The crash was not with iRedMail:

Jul  7 02:55:33 amadeus kernel: Out of memory: Killed process 19266 (httpd).
And not the server crash, it is the process, in this case httpd.

I would keep a 'top' running in a separate terminal session, and check once you get these out-of-memory errors.

7

Re: Server crashes during peak hours

Right you are, in logfile you can read that it was httpd.

I recommend using some other webserver like e.g. nginx, you will have much better memory footprint!