tomcat - Using AWS DynamoDB to save session information in Grails 3 -


as want able persist http sessions across multiple instances of grails 3 application (running in elastic beanstalk) looking use dynamodb mentioned here

(basically 1 provides in web-inf, special dynamodb jar, context file , .config file contains instructions aws copy these 2 files local tomcat instance on aws)

after lots of issues aws security keys etc got grails app deploy , start on amazon elastic beanstalk. when save session dont see in dyanmodb panel of aws. after looking in logs see following:

connection cleanup thread - has failed stop it. create memory leak. stack trace of thread:

 java.lang.object.wait(native method)  java.lang.ref.referencequeue.remove(referencequeue.java:143)   com.mysql.jdbc.abandonedconnectioncleanupthread.run(abandonedconnectioncleanupthread.java:43) 28-jan-2016 20:47:54.595 warning [localhost-startstop-2]     org.apache.catalina.loader.webappclassloaderbase.clearreferencesthreads     web application [root] appears have started thread named [java-sdk-    http-connection-reaper] has failed stop it.     create memory leak. stack trace of thread:  java.lang.thread.sleep(native method)  com.amazonaws.tomcatsessionmanager.amazonaws.http.idleconnectionreaper.run(idleconnectionreaper.java:112) 28-jan-2016 20:47:54.596 warning [localhost-startstop-2] org.apache.catalina.loader.webappclassloaderbase.clearreferencesthreads web application [root] appears have started thread named [dynamo-session-manager-expired-sesion-reaper] has failed stop it. create memory leak. stack trace of thread:  sun.misc.unsafe.park(native method)  java.util.concurrent.locks.locksupport.parknanos(locksupport.java:215)  java.util.concurrent.locks.abstractqueuedsynchronizer$conditionobject.awaitnanos(abstractqueuedsynchronizer.java:2078)**  java.util.concurrent.scheduledthreadpoolexecutor$delayedworkqueue.take(scheduledthreadpoolexecutor.java:1093)  java.util.concurrent.scheduledthreadpoolexecutor$delayedworkqueue.take(scheduledthreadpoolexecutor.java:809)      java.util.concurrent.threadpoolexecutor.gettask(threadpoolexecutor.java:1067)      java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1127)      java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617)      java.lang.thread.run(thread.java:745) 28-jan-2016 20:47:54.597 severe [localhost-startstop-2]     org.apache.catalina.loader.webappclassloaderbase.checkthreadlocalmapforleaks web application [root] created threadlocal key of type [ 

wondered if had ideas how can resolve this. i'm hoping once have dynamodb backing httpsession can spin many instances of web app possible , still have user sessions work across different servers without relying on 'sticky' sessions etc.


Comments