Hi Willy,

 Sorry for give your feedback late. I test it several days and it does not
work with the new two patchs. It hang two times one day.
It still get the errors as follows,
  haproxy[8728]: segfault at 000000001e90f000 rip 0000003ef9c7c51a rsp
00007fff80e29208 error 6
haproxy[18325]: segfault at 000000001e397000 rip 0000003ef9c7c373 rsp
00007fff071afbd8 error 4
haproxy[19660]: segfault at 000000001067a000 rip 0000003ef9c7c506 rsp
00007ffff0703288 error 6
haproxy[19955]: segfault at 0000000006a2e000 rip 0000003ef9c7c3df rsp
00007fff15517608 error 4
haproxy[20180]: segfault at 000000000958b000 rip 0000003ef9c7c4c8 rsp
00007fff64b3ecb8 error 6


do you think it maybe caused by enable the cookie and appsession together?

   cookie HTTPSERVERID insert nocache indirect
   appsession JSESSIONID len 34 timeout 1h
should I disable the cookie and just enable the appsession to test it?

If it  is cause by memory shortage,  do you know how to disable the memory
limitation?

 Here is basic information of my server.

# uname -a
Linux 239488-web3.239488-web3.icebreaker.mobi 2.6.18-194.17.1.el5 #1 SMP Mon
Sep 20 07:12:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
# ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 139264
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 65535
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


Thanks for you help. :)

Hogan

On Sat, Nov 20, 2010 at 12:58 PM, Willy Tarreau <[email protected]> wrote:

> Hi Hogan,
>
> [I removed Cyril from the CC, he might get bored and he's on the list]
>
> On Sat, Nov 20, 2010 at 10:46:53AM +0800, Hogan Yu wrote:
> > Hi Willy,
> >  I update all your suggestion
> >
> >    1.  compile with USE_PCRE=1
> >    2. set ulimit -m unlimited
> >    3. use the two patches
>
> perfect.
>
> > Here is my ulimit -a list
> >
> > # ulimit -a
> > core file size          (blocks, -c) unlimited
> > data seg size           (kbytes, -d) unlimited
> > scheduling priority             (-e) 0
> > file size               (blocks, -f) unlimited
> > pending signals                 (-i) 139264
> > max locked memory       (kbytes, -l) 32
> > max memory size         (kbytes, -m) unlimited
> > open files                      (-n) 65535
> > pipe size            (512 bytes, -p) 8
> > POSIX message queues     (bytes, -q) 819200
> > real-time priority              (-r) 0
> > stack size              (kbytes, -s) 10240
> > cpu time               (seconds, -t) unlimited
> > max user processes              (-u) unlimited
> > virtual memory          (kbytes, -v) unlimited
> > file locks                      (-x) unlimited
> >
> > do you think I need to change the max locked memory to a bigger value?
>
> No, because we're not using any locked memory. All your settings look
> good.
>
> > FYI:
> >    Here is the hang information when I disable the regireg command in the
> > configuration file, The error code change from 6 to 4:
> >
> > haproxy[26980]: segfault at 0000000020334000 rip 0000003ef9c7c3db rsp
> > 00007fff8bd01398 error 4
> > haproxy[1310]: segfault at 0000000021151000 rip 0000003ef9c7c4a4 rsp
> > 00007fff9a1167b8 error 4
> > haproxy[19029]: segfault at 0000000019f33000 rip 0000003ef9c7c4ef rsp
> > 00007fff8982e158 error 4
> > haproxy[25044]: segfault at 0000000020737000 rip 0000003ef9c7c4df rsp
> > 00007fff73962638 error 4
>
> OK, those might very well be the two issues that I fixed with the two
> patches then.
>
> > I will monitor the haproxy status and give your feedback it it works
> well.
> > :)
> >
> > Thanks again for your help and patience.
>
> No, thanks to you first for your fast reports and for taking the risks to
> run
> buggy code !
>
> Cheers,
> Willy
>
>


-- 
Hogan Yu  Technical Operations Director
Ice BreakerSoftware (Beijing) Lmt.
Mobile: 18611746815
Tel:86-10-82800259 82800942
Fax:86-10-82800941

Reply via email to