Concurreny problem in Session Management

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Concurreny problem in Session Management

Gruber Reinhold

Good day,

 

we are using jetty-9.4.11.v20180605 and are experiencing problems with the standard session config  DefaultSessionCache + NullSessionStore.

Some Sessions never gets destroyed. From the logs it seems that sometimes the sessiontimer expires a few milliseconds too soon.

The session is still valid (comparing creationTime and currentTime I guess??) and after that the session never gets checked again and stays in the cache forever.

 

Here the logs of such a session

 

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node07vies8r8ln8t155xl877f7899221

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Inspecting session node07vies8r8ln8t155xl877f7899221, valid=true

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node07vies8r8ln8t155xl877f7899221: expires at 1548084744136 now 1548084744135 maxIdle 1800000

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Checking for idle node07vies8r8ln8t155xl877f7899221

*** No more Logs for this session id

 

 

Compared to the logs for a proper scavenged Session

 

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Inspecting session node01hentjzld5u6vz39lbnt2loaj150, valid=true

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node01hentjzld5u6vz39lbnt2loaj150: expires at 1548084308706 now 1548084308848 maxIdle 1800000

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 is candidate for expiry

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.SessionHandler1824115191==dftMaxIdleSec=1800 scavenging session ids [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.DefaultSessionCache@5089a8d0[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false] checking expiration on [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Expiring node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 deleted in session data store true

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Destroyed timer for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: invalidate node01hentjzld5u6vz39lbnt2loaj150

 

Thanks for help and any hints

Best Regards

Reinhold

 

 

 

 


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Concurreny problem in Session Management

Jan Bartel
Hi,


Thanks for the log output. Firstly,  could you try upgrading to the latest jetty 9.4 version 9.4.14.  Secondly, can you provide a simple reproduction webapp?

Thanks 
Jan

On Tue., 22 Jan. 2019, 04:18 Gruber Reinhold <[hidden email] wrote:

Good day,

 

we are using jetty-9.4.11.v20180605 and are experiencing problems with the standard session config  DefaultSessionCache + NullSessionStore.

Some Sessions never gets destroyed. From the logs it seems that sometimes the sessiontimer expires a few milliseconds too soon.

The session is still valid (comparing creationTime and currentTime I guess??) and after that the session never gets checked again and stays in the cache forever.

 

Here the logs of such a session

 

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node07vies8r8ln8t155xl877f7899221

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Inspecting session node07vies8r8ln8t155xl877f7899221, valid=true

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node07vies8r8ln8t155xl877f7899221: expires at 1548084744136 now 1548084744135 maxIdle 1800000

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Checking for idle node07vies8r8ln8t155xl877f7899221

*** No more Logs for this session id

 

 

Compared to the logs for a proper scavenged Session

 

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Inspecting session node01hentjzld5u6vz39lbnt2loaj150, valid=true

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node01hentjzld5u6vz39lbnt2loaj150: expires at 1548084308706 now 1548084308848 maxIdle 1800000

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 is candidate for expiry

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.SessionHandler1824115191==dftMaxIdleSec=1800 scavenging session ids [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.DefaultSessionCache@5089a8d0[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false] checking expiration on [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Expiring node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 deleted in session data store true

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Destroyed timer for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: invalidate node01hentjzld5u6vz39lbnt2loaj150

 

Thanks for help and any hints

Best Regards

Reinhold

 

 

 

 

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Concurreny problem in Session Management

Jan Bartel
Also, could this bug (since fixed), but related:  https://github.com/eclipse/jetty.project/issues/3203 ???

Jan

On Tue, 22 Jan 2019 at 08:48, Jan Bartel <[hidden email]> wrote:
Hi,


Thanks for the log output. Firstly,  could you try upgrading to the latest jetty 9.4 version 9.4.14.  Secondly, can you provide a simple reproduction webapp?

Thanks 
Jan

On Tue., 22 Jan. 2019, 04:18 Gruber Reinhold <[hidden email] wrote:

Good day,

 

we are using jetty-9.4.11.v20180605 and are experiencing problems with the standard session config  DefaultSessionCache + NullSessionStore.

Some Sessions never gets destroyed. From the logs it seems that sometimes the sessiontimer expires a few milliseconds too soon.

The session is still valid (comparing creationTime and currentTime I guess??) and after that the session never gets checked again and stays in the cache forever.

 

Here the logs of such a session

 

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node07vies8r8ln8t155xl877f7899221

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Inspecting session node07vies8r8ln8t155xl877f7899221, valid=true

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node07vies8r8ln8t155xl877f7899221: expires at 1548084744136 now 1548084744135 maxIdle 1800000

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Checking for idle node07vies8r8ln8t155xl877f7899221

*** No more Logs for this session id

 

 

Compared to the logs for a proper scavenged Session

 

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Inspecting session node01hentjzld5u6vz39lbnt2loaj150, valid=true

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node01hentjzld5u6vz39lbnt2loaj150: expires at 1548084308706 now 1548084308848 maxIdle 1800000

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 is candidate for expiry

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.SessionHandler1824115191==dftMaxIdleSec=1800 scavenging session ids [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.DefaultSessionCache@5089a8d0[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false] checking expiration on [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Expiring node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 deleted in session data store true

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Destroyed timer for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: invalidate node01hentjzld5u6vz39lbnt2loaj150

 

Thanks for help and any hints

Best Regards

Reinhold

 

 

 

 

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users


--
Jan Bartel <[hidden email]>
www.webtide.com
Expert assistance from the creators of Jetty and CometD


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Concurreny problem in Session Management

Jan Bartel
Please also report your DefaultSessionCache settings, and settings for the DefaultSessionIdManager/HouseKeeper.

thanks
Jan

On Tue, 22 Jan 2019 at 09:41, Jan Bartel <[hidden email]> wrote:
Also, could this bug (since fixed), but related:  https://github.com/eclipse/jetty.project/issues/3203 ???

Jan

On Tue, 22 Jan 2019 at 08:48, Jan Bartel <[hidden email]> wrote:
Hi,


Thanks for the log output. Firstly,  could you try upgrading to the latest jetty 9.4 version 9.4.14.  Secondly, can you provide a simple reproduction webapp?

Thanks 
Jan

On Tue., 22 Jan. 2019, 04:18 Gruber Reinhold <[hidden email] wrote:

Good day,

 

we are using jetty-9.4.11.v20180605 and are experiencing problems with the standard session config  DefaultSessionCache + NullSessionStore.

Some Sessions never gets destroyed. From the logs it seems that sometimes the sessiontimer expires a few milliseconds too soon.

The session is still valid (comparing creationTime and currentTime I guess??) and after that the session never gets checked again and stays in the cache forever.

 

Here the logs of such a session

 

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node07vies8r8ln8t155xl877f7899221

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Inspecting session node07vies8r8ln8t155xl877f7899221, valid=true

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node07vies8r8ln8t155xl877f7899221: expires at 1548084744136 now 1548084744135 maxIdle 1800000

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Checking for idle node07vies8r8ln8t155xl877f7899221

*** No more Logs for this session id

 

 

Compared to the logs for a proper scavenged Session

 

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Inspecting session node01hentjzld5u6vz39lbnt2loaj150, valid=true

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node01hentjzld5u6vz39lbnt2loaj150: expires at 1548084308706 now 1548084308848 maxIdle 1800000

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 is candidate for expiry

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.SessionHandler1824115191==dftMaxIdleSec=1800 scavenging session ids [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.DefaultSessionCache@5089a8d0[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false] checking expiration on [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Expiring node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 deleted in session data store true

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Destroyed timer for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: invalidate node01hentjzld5u6vz39lbnt2loaj150

 

Thanks for help and any hints

Best Regards

Reinhold

 

 

 

 

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users


--
Jan Bartel <[hidden email]>
www.webtide.com
Expert assistance from the creators of Jetty and CometD



--
Jan Bartel <[hidden email]>
www.webtide.com
Expert assistance from the creators of Jetty and CometD


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Concurreny problem in Session Management

Gruber Reinhold

We do not have any custom session settings.

We are using standard jetty distribution with start.jar and our own jetty-base.

Attached is that jetty-base directory.

Deployment descriptor of our web-app is very simple.

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">

 

<Configure class="org.eclipse.jetty.webapp.WebAppContext">

 

       <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

       <!-- Required minimal context configuration :                        -->

       <!--  + contextPath                                                  -->

       <!--  + war OR resourceBase                                          -->

       <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

       <Set name="contextPath">/sb</Set>

       <Set name="resourceBase">dvo</Set>

 

</Configure>

 

 

From the logs I can see that the “Testing expiry on session“ frequently fails (the difference between the two timestamps is  only 1 or 2 ms) and

_sessionCache.checkInactiveSession(session) does nothing because or eviction policy is – 1.

 

Best Regards

Reinhold

From: [hidden email] <[hidden email]> On Behalf Of Jan Bartel
Sent: Montag, 21. Januar 2019 23:54
To: JETTY user mailing list <[hidden email]>
Subject: Re: [jetty-users] Concurreny problem in Session Management

 

Please also report your DefaultSessionCache settings, and settings for the DefaultSessionIdManager/HouseKeeper.

 

thanks

Jan

 

On Tue, 22 Jan 2019 at 09:41, Jan Bartel <[hidden email]> wrote:

Also, could this bug (since fixed), but related:  https://github.com/eclipse/jetty.project/issues/3203 ???

 

Jan

 

On Tue, 22 Jan 2019 at 08:48, Jan Bartel <[hidden email]> wrote:

Hi,

 

 

Thanks for the log output. Firstly,  could you try upgrading to the latest jetty 9.4 version 9.4.14.  Secondly, can you provide a simple reproduction webapp?

 

Thanks 

Jan

 

On Tue., 22 Jan. 2019, 04:18 Gruber Reinhold <[hidden email] wrote:

Good day,

 

we are using jetty-9.4.11.v20180605 and are experiencing problems with the standard session config  DefaultSessionCache + NullSessionStore.

Some Sessions never gets destroyed. From the logs it seems that sometimes the sessiontimer expires a few milliseconds too soon.

The session is still valid (comparing creationTime and currentTime I guess??) and after that the session never gets checked again and stays in the cache forever.

 

Here the logs of such a session

 

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node07vies8r8ln8t155xl877f7899221

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Inspecting session node07vies8r8ln8t155xl877f7899221, valid=true

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node07vies8r8ln8t155xl877f7899221: expires at 1548084744136 now 1548084744135 maxIdle 1800000

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Checking for idle node07vies8r8ln8t155xl877f7899221

*** No more Logs for this session id

 

 

Compared to the logs for a proper scavenged Session

 

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Inspecting session node01hentjzld5u6vz39lbnt2loaj150, valid=true

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node01hentjzld5u6vz39lbnt2loaj150: expires at 1548084308706 now 1548084308848 maxIdle 1800000

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 is candidate for expiry

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.SessionHandler1824115191==dftMaxIdleSec=1800 scavenging session ids [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: [hidden email]] checking expiration on [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Expiring node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 deleted in session data store true

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Destroyed timer for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: invalidate node01hentjzld5u6vz39lbnt2loaj150

 

Thanks for help and any hints

Best Regards

Reinhold

 

 

 

 

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users


 

--

Jan Bartel <[hidden email]>

www.webtide.com
Expert assistance from the creators of Jetty and CometD

 


 

--

Jan Bartel <[hidden email]>

www.webtide.com
Expert assistance from the creators of Jetty and CometD

 


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

jetty-base.zip (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Concurreny problem in Session Management

Gruber Reinhold
In reply to this post by Jan Bartel

Hi,

 

upgrading to latest version 9.4.14 did not resolve the problem.

 

Best regards

Reinhold

 

From: [hidden email] <[hidden email]> On Behalf Of Jan Bartel
Sent: Montag, 21. Januar 2019 22:48
To: JETTY user mailing list <[hidden email]>
Subject: Re: [jetty-users] Concurreny problem in Session Management

 

Hi,

 

 

Thanks for the log output. Firstly,  could you try upgrading to the latest jetty 9.4 version 9.4.14.  Secondly, can you provide a simple reproduction webapp?

 

Thanks 

Jan

 

On Tue., 22 Jan. 2019, 04:18 Gruber Reinhold <[hidden email] wrote:

Good day,

 

we are using jetty-9.4.11.v20180605 and are experiencing problems with the standard session config  DefaultSessionCache + NullSessionStore.

Some Sessions never gets destroyed. From the logs it seems that sometimes the sessiontimer expires a few milliseconds too soon.

The session is still valid (comparing creationTime and currentTime I guess??) and after that the session never gets checked again and stays in the cache forever.

 

Here the logs of such a session

 

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node07vies8r8ln8t155xl877f7899221

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Inspecting session node07vies8r8ln8t155xl877f7899221, valid=true

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node07vies8r8ln8t155xl877f7899221: expires at 1548084744136 now 1548084744135 maxIdle 1800000

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Checking for idle node07vies8r8ln8t155xl877f7899221

*** No more Logs for this session id

 

 

Compared to the logs for a proper scavenged Session

 

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Inspecting session node01hentjzld5u6vz39lbnt2loaj150, valid=true

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node01hentjzld5u6vz39lbnt2loaj150: expires at 1548084308706 now 1548084308848 maxIdle 1800000

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 is candidate for expiry

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.SessionHandler1824115191==dftMaxIdleSec=1800 scavenging session ids [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: [hidden email]] checking expiration on [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Expiring node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 deleted in session data store true

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Destroyed timer for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: invalidate node01hentjzld5u6vz39lbnt2loaj150

 

Thanks for help and any hints

Best Regards

Reinhold

 

 

 

 

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Concurreny problem in Session Management

Jan Bartel
Reinhold,

I've opened bug https://github.com/eclipse/jetty.project/issues/3284 to record this.

I've had a look at your jetty-base, and nothing seems amiss.  I have more questions for you,  are you able to respond on that issue please?

thanks
Jan


On Tue, 22 Jan 2019 at 23:48, Gruber Reinhold <[hidden email]> wrote:

Hi,

 

upgrading to latest version 9.4.14 did not resolve the problem.

 

Best regards

Reinhold

 

From: [hidden email] <[hidden email]> On Behalf Of Jan Bartel
Sent: Montag, 21. Januar 2019 22:48
To: JETTY user mailing list <[hidden email]>
Subject: Re: [jetty-users] Concurreny problem in Session Management

 

Hi,

 

 

Thanks for the log output. Firstly,  could you try upgrading to the latest jetty 9.4 version 9.4.14.  Secondly, can you provide a simple reproduction webapp?

 

Thanks 

Jan

 

On Tue., 22 Jan. 2019, 04:18 Gruber Reinhold <[hidden email] wrote:

Good day,

 

we are using jetty-9.4.11.v20180605 and are experiencing problems with the standard session config  DefaultSessionCache + NullSessionStore.

Some Sessions never gets destroyed. From the logs it seems that sometimes the sessiontimer expires a few milliseconds too soon.

The session is still valid (comparing creationTime and currentTime I guess??) and after that the session never gets checked again and stays in the cache forever.

 

Here the logs of such a session

 

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node07vies8r8ln8t155xl877f7899221

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Inspecting session node07vies8r8ln8t155xl877f7899221, valid=true

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node07vies8r8ln8t155xl877f7899221: expires at 1548084744136 now 1548084744135 maxIdle 1800000

2019-01-21 16:32:24.135:DBUG:oejs.session:Scheduler-627185331: Checking for idle node07vies8r8ln8t155xl877f7899221

*** No more Logs for this session id

 

 

Compared to the logs for a proper scavenged Session

 

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Timer expired for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Inspecting session node01hentjzld5u6vz39lbnt2loaj150, valid=true

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Testing expiry on session node01hentjzld5u6vz39lbnt2loaj150: expires at 1548084308706 now 1548084308848 maxIdle 1800000

2019-01-21 16:25:08.848:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 is candidate for expiry

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: org.eclipse.jetty.server.session.SessionHandler1824115191==dftMaxIdleSec=1800 scavenging session ids [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: [hidden email]] checking expiration on [node01hentjzld5u6vz39lbnt2loaj150, node01m0c0ptdefjzq6p1jcjmss49b91, node015m99znyw1u0u1eocjxuy6g4be76, node0128njutc20q9bg076cosq2u7v45, node01bxvp6fa4zdr71hzl49zazino264, node0w94ozpsbfhrf5hti1fcf0w95111, node01tnlhsfxfi2gp1kn99g5lsiuw138, node01esletkbhaj9g1o4cshwgurugm65, node011vmoxjy7an21bnpty5qzlkop126, node0x3cvb3an5g84kqq0f0q1crmx62, node0gew7z9vb030u10txee3kqgwms112, node01cp1wc584wvnlo52d61x6my4l96, node01x75o4937d8i61secnbltektro85, node01kshabnwf9h8fx3551ypmlfg136, node04l2993xxgx4kb45za59xno5b139, node0rxinxivxibule9ko7roh8qvo63, node0ljny6qwerth81l33o7fsz2wpw34, node0cnffoiinzf4y12k3taa1uk48s105, node01sy6nl8jpg6pptmb46ujfdrp914, node03vqeu3xu5f7w19fgsmpnd48ag103, node0yowe2bz2urnmm458d6unosmo82, node028cjkes81yfq323kfi99br1n125, node0cb4bpd4ik8pvmenisfk9khew110, node0igg96ivibij7dfz9v88k3y0u15, node0e1i3so4hhbc06pvi5v7ksha4140, node07y8eh82s8n261b8i5sw0kykau69, node0174qm2kcvrh931ok48ry0kti13129, node08z8p9rg4vpubxlw252dphpbd51, node0dpg67j74597tyykho51vu4k546, node01xdkyljsv4h5a1m2g2icuvsk9z164, node09i93e46nqe21d8frip28cx3j133, node01fy0gre1jni4yz7czmlbqi77b136, node0d7oyaaf9sfj233wh24o0grdq19, node01gq4d3c0j1w591qd7u86djhltq10, node01tfdg3qy5j8ax1jy49dx1n015f28, node0onnitlzog1nl1b02kfgvxkldq149, node0136onv2pe35vxzzcuw851krnb77, node01afdq1vs3ce0xnscabdh1oxtm17, node01qrlkyyk19tr4r2a21wvohcsr66, node019x8ur8rjhwisg61rl5qvfaut107, node0piv2sh1nxa501ukmnb876wtr143, node0j4955urdevwvf4hoshnuo8e2120, node011hwuf7lfptpywdz8pcvjient57, node0xo7wjnaddojxtl2gy3fa06hi83, node01imacjy3lp1wr1fkmxsrfujap993, node07y1imt3u0whc1ld1exl93x9ou127, node012v6yctpwcx4i117z79bgid8lk114, node01clflynk302nt1qyy7kk9q0ox442, node0t02eftrahavscusevowxa9ng73, node01hkogytp7gw2hy38v8732yr21, node014jexudy7y7l61mey7wlt0cct287, node01jcmajrzk4aim1iym78zilbrvd80, node0tlc3h1ifv71b1cr8bnbttio3w88, node010h5pb66srlg516kktw3qoyrcw2, node01m8db9brlt838coucn5kdyd5v74, node01n4u2ir2jzsjfin8nnqcog1je152, node01jjc7jhs3x10f1w6m4hv4h7xug0, node01tthlplz6momg1hmzpx8z242y9156, node01k2aefpam0q223jum1o1pb57s37, node01fkzj2zgycdg218n0p8oy978q129, node01bdr1dytm31at18v89aai6nvxf104, node01hk4jj9s4agbb1nii1n4pkxklt108, node01ve8wp1dyqnkumfxckxbqgktd170, node0kxf9va52juhsgf2nnw38u99u23, node01fp5596z3mqw81636r81ke1cuw50, node0u6vajhgrnp8z6vewb9w3gz9l123, node018ovezppho2y1le7x0jmybj2x84, node04b8wqt5encht1oac1yxagcbet147, node01ajur79hkcl0qwvw6cw2a8tbz113, node01lpep6w3e6m4chy9yb3xv984b81, node0eprqkz4b12o9828oq9jl7ajp44, node010az9536agwy78x90x7omdbs7122, node0zujdmlzece221uoky5ul5w3s26, node014ii42e5ftupr110cql6b5bfqj109, node0gm5wcugzy0rx19min4c58btq8124, node0yuv51y8q0dncm73rigjsbfn101, node0v986jwfu06yb1gzje9xz39xj8157, node07hn6i53faqs95eum3xywhp7756, node0r138ssgcbkpzyf7miiqp6fzi162, node0rl8xdj2s5tm8qto2gq0uier2171, node0l08ycbytjbbu1x1u0rd023n4l5, node01ej9oermfw05w1pmq5u18n99ng106, node0v05ylzfsl252tcmdvx8koqrm99, node0d9o49or7g9p91ns88jpy2t4f08, node0uz5cslaaoye212er5su2dn008169, node01kml2j8wfpzteggn7wap0sla947, node01em0y98t0jthevqxwut3kpx29167, node01b5hjv8xspbtb1o5ec6whex413137, node0rb8devq4zkkm5i7d0zj4m6bj16, node01dmms5pwy3phrdkce7krlc897165, node01l41xh45zceobtv9m5jhs4hcj33, node0ap2eztiv968f1m7ke31qqwrqm55, node057q2nd516zay1iw8u4u3ztinc3, node01dsuj4dvabsn1kblejqj3cc1g38, node015j1y2gzzdpwcokjaml3n72wt130, node01d05thghz1pf43itsr465vitz151, node035b64u9okh5i1oayo8lm633t625, node06iy2uc3xdk7pdc0ghx0ofkh822, node01r5bwj652myh1hmkh7kgo0pzi97, node08dziip83l31hw3x9if2md7zl13, node01aw0iny65jkhebup5x32a77ov116, node01ur0oq6leao851agr7ayl7m0r931, node01nijgy8hxacio1a9n9dpwu44be131, node01iq6zw505vqve1wakgdou72oy07, node0kheiv1cnbrrz190cfwp2odm4941, node0m0s3srv4bonhqjxiss3mx1db86, node01i1gfgulyygn3jm2gpdf9f6d2141, node01k9sinvk0dbdi1i54vivze20fw119, node05zlyf1hdpkvpqo6ybxd1b3n6163, node01sfjs5nx2qtwu1tgnmb5pkhcl761]

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Expiring node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Session node01hentjzld5u6vz39lbnt2loaj150 deleted in session data store true

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: Destroyed timer for session node01hentjzld5u6vz39lbnt2loaj150

2019-01-21 16:26:42.963:DBUG:oejs.session:Scheduler-627185331: invalidate node01hentjzld5u6vz39lbnt2loaj150

 

Thanks for help and any hints

Best Regards

Reinhold

 

 

 

 

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users


--
Jan Bartel <[hidden email]>
www.webtide.com
Expert assistance from the creators of Jetty and CometD


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users