Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zookeeper servers will create a lot of sessions when using php_zookeeper under FCGI mode. #47

Open
Timandes opened this issue Apr 28, 2015 · 0 comments

Comments

@Timandes
Copy link
Contributor

When using php_zookeeper under FCGI mode, it causes servers frequently create and close zookeeper sessions, and generate a lot of log lines.

I'v noticed that the 4th parameter of function zookeeper_init is always set to 0.
Is there any better idea to reuse zookeeper session that former script created?

4/28/15 10:34:10 AM CST session 0x34cf9c251bcdfcf cxid 0x5536fed1 zxid 0x2002ae20a closeSession null
4/28/15 10:34:10 AM CST session 0x34cf9c251bcdfd9 cxid 0x553700ba zxid 0x2002ae20b closeSession null
4/28/15 10:34:10 AM CST session 0x54cf9c2a711e182 cxid 0x5538d4fc zxid 0x2002ae20c closeSession null
4/28/15 10:34:10 AM CST session 0x24cf9c2391de40e cxid 0x0 zxid 0x2002ae20d createSession 10000

4/28/15 10:34:10 AM CST session 0x14cfddc1ea871ab cxid 0x5538c42c zxid 0x2002ae20e closeSession null
4/28/15 10:34:10 AM CST session 0x44cf9c2bd0fe14e cxid 0x5536ffe9 zxid 0x2002ae20f closeSession null
4/28/15 10:34:10 AM CST session 0x24cf9c2391de40f cxid 0x0 zxid 0x2002ae210 createSession 10000

4/28/15 10:34:10 AM CST session 0x24cf9c2391de410 cxid 0x0 zxid 0x2002ae211 createSession 10000

4/28/15 10:34:10 AM CST session 0x54cf9c2a711e192 cxid 0x0 zxid 0x2002ae212 createSession 10000

4/28/15 10:34:10 AM CST session 0x14cfddc1ea871ac cxid 0x0 zxid 0x2002ae213 createSession 10000

4/28/15 10:34:10 AM CST session 0x24cf9c2391de411 cxid 0x0 zxid 0x2002ae214 createSession 10000

4/28/15 10:34:10 AM CST session 0x44cf9c2bd0fe150 cxid 0x0 zxid 0x2002ae215 createSession 10000

4/28/15 10:34:10 AM CST session 0x34cf9c251bcdfc8 cxid 0x5536fc68 zxid 0x2002ae216 closeSession null
4/28/15 10:34:10 AM CST session 0x24cf9c2391de412 cxid 0x0 zxid 0x2002ae217 createSession 10000

4/28/15 10:34:10 AM CST session 0x14cfddc1ea871a9 cxid 0x5536fc65 zxid 0x2002ae218 closeSession null
4/28/15 10:34:10 AM CST session 0x14cfddc1ea871ac cxid 0x55370351 zxid 0x2002ae219 closeSession null
4/28/15 10:34:10 AM CST session 0x44cf9c2bd0fe150 cxid 0x5536ff31 zxid 0x2002ae21a closeSession null
4/28/15 10:34:10 AM CST session 0x24cf9c2391de40e cxid 0x55370032 zxid 0x2002ae21b closeSession null
4/28/15 10:34:10 AM CST session 0x34cf9c251bcdfda cxid 0x0 zxid 0x2002ae21c createSession 10000

4/28/15 10:34:10 AM CST session 0x24cf9c2391de412 cxid 0x55370034 zxid 0x2002ae21d closeSession null
4/28/15 10:34:10 AM CST session 0x14cfddc1ea871a5 cxid 0x5538c3c4 zxid 0x2002ae21e closeSession null
4/28/15 10:34:10 AM CST session 0x44cf9c2bd0fe14c cxid 0x5538bf30 zxid 0x2002ae21f closeSession null
4/28/15 10:34:10 AM CST session 0x14cfddc1ea871ad cxid 0x0 zxid 0x2002ae220 createSession 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant