views:

15

answers:

0

Hi, I am porting a rails application to Win2K3 server, with cygwin. The application is up and running, but start to respond slowly very soon. I find that cygwin is only allocating swap to all process ( with top ), not using the 2GB memory available. Even Windows Task Manager shows high CPU usage but lots of free memory.

How can I track down and resolve this issue ?

$ cat /proc/version
CYGWIN_NT-5.2 1.5.25(0.156/4/2) 2008-06-12 19:34

$ cat /proc/meminfo
          total:      used:      free:
Mem:   2147483647         0 2147483647
Swap:  2145386496   31637504 2113748992
MemTotal:         2097151 kB
MemFree:          2097151 kB
MemShared:              0 kB
HighTotal:              0 kB
HighFree:               0 kB
LowTotal:         2097151 kB
LowFree:          2097151 kB
SwapTotal:        2095104 kB
SwapFree:         2064208 kB

$ top
top - 14:45:09 up  1:15,  0 users,  load average: 0.00, 0.00, 0.00
Tasks:   9 total,   3 running,   6 sleeping,   0 stopped,   0 zombie
Cpu(s):  21.9% user,  19.8% system,   0.0% nice,  58.3% idle
Mem:   2097151k total,        0k used,  2097151k free,        0k buffers
Swap:  2095104k total,    30896k used,  2064208k free,        0k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND  
 3664 ruby       8   0  4984  128    0 R   95  0.0  36:25.10 ruby
  856 ruby       8   0 20052  13m   20 R   13  0.7   5:28.54 ruby
 4060 ruby       8   0  4984  124    0 S    0  0.0   0:00.07 bash
  204 ruby       8   0  4984  128    0 S    0  0.0   0:00.01 bash
 2664 ruby       8   0  5724 1964   20 S    0  0.1   0:06.51 lighttpd
  672 Administ   8   0  5048 2124   32 S    0  0.1   0:00.14 bash
 1684 SYSTEM     8   0  4264 2480   64 S    0  0.1   0:00.14 cygrunsrv
 1328 Administ   8   0  4784 3244   68 R    0  0.2   0:00.04 top
 1776 SYSTEM     8   0  4220 2272   64 S    0  0.1   0:00.12 cron

And the win2k3 server is Standard Edition / SP1

Thanks