I'm not sure how to interpret /proc/<pid>/maps
The output right now is
01ac2000-023f7000 rw-p 00000000 00:00
0 [heap]
before doing server requests it stayed at 01ac2000-01e7c000, while
serving requests, second number keeps changing.
the requested outputs:
uname -a: Linux test-ubuntu1 2.6.32-33-server #70-Ubuntu SMP Thu Jul 7
22:28:30 UTC 2011 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.2.0
built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
configure arguments: --prefix=/home/cfuser/.deployments/deployment/
deploy/nginx/nginx-1.2.0 --with-pcre=../pcre-8.21 --add-module=../
nginx_upload_module-2.2.0 --add-module=../agentzh-headers-more-nginx-
module-5fac223 --add-module=../simpl-ngx_devel_kit-bc97eea --add-
module=../chaoslawful-lua-nginx-module-204ce2b
lsb_release: No LSB modules are available.
On Jun 12, 12:36 pm, Yongkun Anfernee Gui <
a...@rbcon.com> wrote:
> also, can you try google-perftools for more detailed profiling of nginx.
>
> - anfernee
>
>
>
>
>
>
>
> On Tue, Jun 12, 2012 at 5:14 PM, Chunjie Zhu <
c...@rbcon.com> wrote:
> > From strace output, it seems brk system call consumes most of all CPU
> > resource.
>
> > As we all know, brk system call is called by glibc malloc to allocate heap
> > memory. So, a naive guess is that, the process's heap space runs out, so
> > kernel struggles to revoke memory and do re-allocation.
>
> > Please refer to /proc/<pid>/maps to check the process virtual memory
> > layout and find out whether the heap space runs out when this problem
> > happens again.
>
> > Regards,
> > Chunjie
>
> > ------------------------------
> > *From: *"Yongkun Anfernee Gui" <
a...@rbcon.com>
> > *To: *
vcap-...@cloudfoundry.org
> > *Sent: *Tuesday, June 12, 2012 3:45:01 PM
> > *Subject: *Re: [vcap-dev] Re: nginx worker process high CPU usage
>
> > First thing, we are officially using nginx 0.8.54 in cloud foundry, though
> > I think
> > 1.2.0 should work the same.
>
> > Next, other than upgrading nginx, did you other special things, like
> > changing the
> > nginx config file, etc?
>
> > Next, what is the result of the following: uname -a, nginx -V,
> > lsb_release? I know it
> > works very well on ubuntu 10.04, x86_64/i686.
>
> > Your requests failed or became slow when cpu went to 100%? Is there
> > anything
> > abnormal in nginx access log and error log? Can you try a simple config,
> > to isolate
> > the nginx problem?
>
> > Thanks,
> > Anfernee
>