Roundcube seems to be slow

Discussion in 'Installation/Configuration' started by unsichtbare, Apr 12, 2008.

  1. unsichtbare

    unsichtbare Member HowtoForge Supporter

    I have sucessfully installed Roundcube and love it, but it seems to be much slower than I would expect, even with LAN connection speeds.

    Are there any performance tuning tips or tricks I could use?

    -J
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Any errors in Apache's error log?
    Did you check your load average (e.g. with
    Code:
    top
    )?
     
  3. unsichtbare

    unsichtbare Member HowtoForge Supporter

    No errors that seem to be related to Roundcube:

    Code:
    [Fri Apr 11 19:54:24 2008] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
    [Fri Apr 11 19:54:25 2008] [warn] long lost child came home! (pid 4287)
    [Fri Apr 11 19:54:53 2008] [notice] Graceful restart requested, doing restart
    [Fri Apr 11 19:54:53 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Fri Apr 11 19:54:53 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Fri Apr 11 19:54:53 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Fri Apr 11 19:54:53 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Fri Apr 11 19:54:53 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    PHP Warning:  Module 'json' already loaded in Unknown on line 0
    [Fri Apr 11 19:54:53 2008] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
    [Fri Apr 11 19:54:53 2008] [warn] long lost child came home! (pid 1757)
    
    Loads are normally very low:
    Code:
    top - 11:40:39 up 1 day,  1:44,  1 user,  load average: 0.08, 0.12, 0.09
    Tasks:  95 total,   4 running,  91 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.0%us,  1.7%sy,  0.0%ni, 97.3%id,  0.0%wa,  0.0%hi,  1.0%si,  0.0%st
    Mem:    515956k total,   441296k used,    74660k free,    59620k buffers
    Swap:  1759076k total,      128k used,  1758948k free,   126084k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
      110 root      15   0     0    0    0 S  2.3  0.0   3:26.04 pdflush
     2659 root      15   0  8028 2468 2008 R  0.3  0.5   0:00.11 sshd
        1 root      25   0  2912 1848  524 S  0.0  0.4   0:02.19 init
        2 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0
        3 root      34  19     0    0    0 S  0.0  0.0   0:00.02 ksoftirqd/0
        4 root      RT   0     0    0    0 S  0.0  0.0   0:00.02 watchdog/0
        5 root      10  -5     0    0    0 S  0.0  0.0   0:00.32 events/0
        6 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
        7 root      11  -5     0    0    0 S  0.0  0.0   0:00.01 kthread
       30 root      15  -5     0    0    0 S  0.0  0.0   0:09.30 kblockd/0
       31 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
       32 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
       88 root      10  -5     0    0    0 S  0.0  0.0   0:00.01 kseriod
      109 root      20   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
      111 root      10  -5     0    0    0 S  0.0  0.0   0:00.74 kswapd0
      112 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
     1377 postfix   25   0  4964 1584 1260 S  0.0  0.3   0:00.02 pickup
     1788 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata/0
     1789 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ata_aux
     1933 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0
     2106 root      10  -5     0    0    0 S  0.0  0.0   1:56.22 kjournald
     2237 root      16  -4  2300  636  372 S  0.0  0.1   0:01.95 udevd
     2295 root      18   0  1688  452  380 S  0.0  0.1   0:00.26 cronolog
     2308 www-data  20   0 43340  14m 5080 S  0.0  2.9   0:57.64 apache2
     2326 postfix   15   0  4960 1536 1228 S  0.0  0.3   0:00.02 anvil
     2371 bind      25   0 30880 3292 2084 S  0.0  0.6   0:00.89 named
     2411 root      15   0  8036 2468 1988 S  0.0  0.5   0:00.08 sshd
     2413 root      15   0  4344 1256  912 S  0.0  0.2   0:00.16 sftp-server
     2460 postfix   15   0  6544 3204 2624 S  0.0  0.6   0:00.07 smtpd
     2462 postfix   15   0  4972 1884 1532 S  0.0  0.4   0:00.02 trivial-rewrite
     2463 postfix   16   0  5024 1952 1588 S  0.0  0.4   0:00.03 cleanup
     2464 postfix   16   0  5000 1956 1600 S  0.0  0.4   0:00.03 local
     2481 postfix   16   0  4996 1948 1600 S  0.0  0.4   0:00.02 local
     2538 www-data  15   0 47236  17m 4356 S  0.0  3.5   0:47.83 apache2
    
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Looks ok. You could try to integrate PHP opcode cachers such as eAccelerator or Xcache into ISPConfig's PHP (ISPConfig comes with its own Apache and PHP in the /root/ispconfig directory).
     
  5. unsichtbare

    unsichtbare Member HowtoForge Supporter

    so what directory would I place the xcache.so file for ISPConfig?
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Doesn't matter. you can either use the phpize command from ISPConfig, or you use a full path to the xcache.so in the php.ini, e.g.
    Code:
    extension=/path/to/xcache.so
     

Share This Page