java - Spring Boot Actuator application won't start on Ubuntu VPS -


i have java backend uses spring boot actuator won't start on digitalocean ubuntu vps. same application runs on mac , on other ubuntu pc.

szabolcs@smartupprod:~/smartup$ java -xmx1536m -jar build/libs/smartup-backend-0.1.0.jar  

it starts initialisation stops @ same point every time (no exception, hangs). if try stop @ point ^c won't bring shell back.

this outoput:

  .   ____          _            __ _ _  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )   '  |____| .__|_| |_|_| |_\__, | / / / /  =========|_|==============|___/=/_/_/_/  :: spring boot ::        (v1.1.5.release)  2014-09-04 04:19:27.697  info 1724 --- [           main] com.smartup.smartupconfiguration         : starting smartupconfiguration on smartupprod pid 1724 (/home/szabolcs/smartup/build/libs/smartup-backend-0.1.0.jar started szabolcs in /home/szabolcs/smartup) 2014-09-04 04:19:27.783  info 1724 --- [           main] ationconfigembeddedwebapplicationcontext : refreshing org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@464e53bb: startup date [thu sep 04 04:19:27 edt 2014]; root of context hierarchy 2014-09-04 04:19:28.911  info 1724 --- [           main] o.s.b.f.s.defaultlistablebeanfactory     : overriding bean definition bean 'beannameviewresolver': replacing [root bean: class [null]; scope=; abstract=false; lazyinit=false; autowiremode=3; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=org.springframework.boot.autoconfigure.web.errormvcautoconfiguration$whitelabelerrorviewconfiguration; factorymethodname=beannameviewresolver; initmethodname=null; destroymethodname=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/errormvcautoconfiguration$whitelabelerrorviewconfiguration.class]] [root bean: class [null]; scope=; abstract=false; lazyinit=false; autowiremode=3; dependencycheck=0; autowirecandidate=true; primary=false; factorybeanname=org.springframework.boot.autoconfigure.web.webmvcautoconfiguration$webmvcautoconfigurationadapter; factorymethodname=beannameviewresolver; initmethodname=null; destroymethodname=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/webmvcautoconfiguration$webmvcautoconfigurationadapter.class]] 2014-09-04 04:19:30.225  info 1724 --- [           main] trationdelegate$beanpostprocessorchecker : bean 'smartupconfiguration' of type [class com.smartup.smartupconfiguration$$enhancerbyspringcglib$$ec37524d] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 2014-09-04 04:19:30.254  info 1724 --- [           main] o.s.j.d.drivermanagerdatasource          : loaded jdbc driver: com.mysql.jdbc.driver 2014-09-04 04:19:30.266  info 1724 --- [           main] trationdelegate$beanpostprocessorchecker : bean 'datasource' of type [class org.springframework.jdbc.datasource.drivermanagerdatasource] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 2014-09-04 04:19:30.293  info 1724 --- [           main] j.localcontainerentitymanagerfactorybean : building jpa container entitymanagerfactory persistence unit 'default' 2014-09-04 04:19:30.440  info 1724 --- [           main] o.hibernate.annotations.common.version   : hcann000001: hibernate commons annotations {4.0.1.final} 2014-09-04 04:19:30.452  info 1724 --- [           main] org.hibernate.version                    : hhh000412: hibernate core {4.0.1.final} 2014-09-04 04:19:30.457  info 1724 --- [           main] org.hibernate.cfg.environment            : hhh000206: hibernate.properties not found 2014-09-04 04:19:30.459  info 1724 --- [           main] org.hibernate.cfg.environment            : hhh000021: bytecode provider name : javassist 2014-09-04 04:19:30.486  info 1724 --- [           main] org.hibernate.ejb.ejb3configuration      : hhh000204: processing persistenceunitinfo [     name: default     ...] 2014-09-04 04:19:30.826  info 1724 --- [           main] o.h.s.j.c.i.connectionproviderinitiator  : hhh000130: instantiating explicit connection provider: org.hibernate.ejb.connection.injecteddatasourceconnectionprovider 2014-09-04 04:19:31.175  info 1724 --- [           main] org.hibernate.dialect.dialect            : hhh000400: using dialect: org.hibernate.dialect.mysql5innodbdialect 2014-09-04 04:19:31.188  info 1724 --- [           main] o.h.e.jdbc.internal.lobcreatorbuilder    : hhh000423: disabling contextual lob creation jdbc driver reported jdbc version [3] less 4 2014-09-04 04:19:31.208  info 1724 --- [           main] o.h.e.t.i.transactionfactoryinitiator    : hhh000268: transaction strategy: org.hibernate.engine.transaction.internal.jdbc.jdbctransactionfactory 2014-09-04 04:19:31.218  info 1724 --- [           main] o.h.h.i.ast.astquerytranslatorfactory    : hhh000397: using astquerytranslatorfactory 2014-09-04 04:19:31.657  info 1724 --- [           main] org.hibernate.tool.hbm2ddl.schemaupdate  : hhh000228: running hbm2ddl schema update  [...] 2014-09-04 04:19:31.768  info 1724 --- [           main] org.hibernate.tool.hbm2ddl.schemaupdate  : hhh000232: schema update complete 2014-09-04 04:19:31.947  info 1724 --- [           main] trationdelegate$beanpostprocessorchecker : bean 'entitymanagerfactory' of type [class org.springframework.orm.jpa.localcontainerentitymanagerfactorybean] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 2014-09-04 04:19:32.092  info 1724 --- [           main] trationdelegate$beanpostprocessorchecker : bean 'org.springframework.transaction.annotation.proxytransactionmanagementconfiguration' of type [class org.springframework.transaction.annotation.proxytransactionmanagementconfiguration$$enhancerbyspringcglib$$7460673f] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 2014-09-04 04:19:32.119  info 1724 --- [           main] trationdelegate$beanpostprocessorchecker : bean 'transactionattributesource' of type [class org.springframework.transaction.annotation.annotationtransactionattributesource] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 2014-09-04 04:19:32.148  info 1724 --- [           main] trationdelegate$beanpostprocessorchecker : bean 'transactioninterceptor' of type [class org.springframework.transaction.interceptor.transactioninterceptor] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 2014-09-04 04:19:32.167  info 1724 --- [           main] trationdelegate$beanpostprocessorchecker : bean 'org.springframework.transaction.config.internaltransactionadvisor' of type [class org.springframework.transaction.interceptor.beanfactorytransactionattributesourceadvisor] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 2014-09-04 04:19:32.574  info 1724 --- [           main] .t.tomcatembeddedservletcontainerfactory : server initialized port: 8080 2014-09-04 04:19:32.803  info 1724 --- [           main] o.apache.catalina.core.standardservice   : starting service tomcat 2014-09-04 04:19:32.805  info 1724 --- [           main] org.apache.catalina.core.standardengine  : starting servlet engine: apache tomcat/7.0.54 2014-09-04 04:19:32.956  info 1724 --- [ost-startstop-1] o.a.c.c.c.[tomcat].[localhost].[/]       : initializing spring embedded webapplicationcontext 2014-09-04 04:19:32.957  info 1724 --- [ost-startstop-1] o.s.web.context.contextloader            : root webapplicationcontext: initialization completed in 5178 ms 2014-09-04 04:19:35.202  info 1724 --- [ost-startstop-1] o.s.s.web.defaultsecurityfilterchain     : creating filter chain: ant [pattern='/css/**'], [] 2014-09-04 04:19:35.203  info 1724 --- [ost-startstop-1] o.s.s.web.defaultsecurityfilterchain     : creating filter chain: ant [pattern='/js/**'], [] 2014-09-04 04:19:35.203  info 1724 --- [ost-startstop-1] o.s.s.web.defaultsecurityfilterchain     : creating filter chain: ant [pattern='/images/**'], [] 2014-09-04 04:19:35.203  info 1724 --- [ost-startstop-1] o.s.s.web.defaultsecurityfilterchain     : creating filter chain: ant [pattern='/**/favicon.ico'], [] 2014-09-04 04:19:35.203  info 1724 --- [ost-startstop-1] o.s.s.web.defaultsecurityfilterchain     : creating filter chain: ant [pattern='/info'], [] 2014-09-04 04:19:35.203  info 1724 --- [ost-startstop-1] o.s.s.web.defaultsecurityfilterchain     : creating filter chain: ant [pattern='/health'], [] 2014-09-04 04:19:35.203  info 1724 --- [ost-startstop-1] o.s.s.web.defaultsecurityfilterchain     : creating filter chain: ant [pattern='/error'], [] 2014-09-04 04:19:35.252  info 1724 --- [ost-startstop-1] o.s.s.web.defaultsecurityfilterchain     : creating filter chain: org.springframework.security.web.util.matcher.anyrequestmatcher@1, [org.springframework.security.web.context.request.async.webasyncmanagerintegrationfilter@5c4b8904, org.springframework.security.web.context.securitycontextpersistencefilter@36b59af2, org.springframework.security.web.header.headerwriterfilter@71880af1, org.springframework.security.web.authentication.logout.logoutfilter@1cd26cc7, org.springframework.security.web.authentication.www.basicauthenticationfilter@10e5d335, org.springframework.security.web.savedrequest.requestcacheawarefilter@6c2a1c3a, org.springframework.security.web.servletapi.securitycontextholderawarerequestfilter@5c58c840, org.springframework.security.web.authentication.anonymousauthenticationfilter@166e5d45, org.springframework.security.web.session.sessionmanagementfilter@49040d09, org.springframework.security.web.access.exceptiontranslationfilter@2d18c028, org.springframework.security.web.access.intercept.filtersecurityinterceptor@5dc9dca8] 2014-09-04 04:19:35.257  info 1724 --- [ost-startstop-1] o.s.s.web.defaultsecurityfilterchain     : creating filter chain: orrequestmatcher [requestmatchers=[ant [pattern='/dump'], ant [pattern='/dump/'], ant [pattern='/dump.*'], ant [pattern='/env'], ant [pattern='/env/'], ant [pattern='/env.*'], ant [pattern='/configprops'], ant [pattern='/configprops/'], ant [pattern='/configprops.*'], ant [pattern='/autoconfig'], ant [pattern='/autoconfig/'], ant [pattern='/autoconfig.*'], ant [pattern='/mappings'], ant [pattern='/mappings/'], ant [pattern='/mappings.*'], ant [pattern='/trace'], ant [pattern='/trace/'], ant [pattern='/trace.*'], ant [pattern='/metrics'], ant [pattern='/metrics/'], ant [pattern='/metrics.*'], ant [pattern='/beans'], ant [pattern='/beans/'], ant [pattern='/beans.*']]], [org.springframework.security.web.context.request.async.webasyncmanagerintegrationfilter@73762e60, org.springframework.security.web.context.securitycontextpersistencefilter@3d8b310e, org.springframework.security.web.header.headerwriterfilter@5ef9f4c9, org.springframework.security.web.authentication.logout.logoutfilter@2fa7040e, org.springframework.security.web.authentication.www.basicauthenticationfilter@3ae20f72, org.springframework.security.web.savedrequest.requestcacheawarefilter@1bd98f6, org.springframework.security.web.servletapi.securitycontextholderawarerequestfilter@10736bb4, org.springframework.security.web.session.sessionmanagementfilter@4bde96b2, org.springframework.security.web.access.exceptiontranslationfilter@56ed5cfd, org.springframework.security.web.access.intercept.filtersecurityinterceptor@2df2e9b6] 2014-09-04 04:19:35.391  info 1724 --- [ost-startstop-1] o.s.b.c.e.servletregistrationbean        : mapping servlet: 'dispatcherservlet' [/] 2014-09-04 04:19:35.395  info 1724 --- [ost-startstop-1] o.s.b.c.embedded.filterregistrationbean  : mapping filter: 'metricfilter' to: [/*] 2014-09-04 04:19:35.396  info 1724 --- [ost-startstop-1] o.s.b.c.embedded.filterregistrationbean  : mapping filter: 'springsecurityfilterchain' to: [/*] 2014-09-04 04:19:35.396  info 1724 --- [ost-startstop-1] o.s.b.c.embedded.filterregistrationbean  : mapping filter: 'hiddenhttpmethodfilter' to: [/*] 2014-09-04 04:19:35.396  info 1724 --- [ost-startstop-1] o.s.b.c.embedded.filterregistrationbean  : mapping filter: 'applicationcontextidfilter' to: [/*] 2014-09-04 04:19:35.396  info 1724 --- [ost-startstop-1] o.s.b.c.embedded.filterregistrationbean  : mapping filter: 'webrequestloggingfilter' to: [/*] 

and output after ^c:

^c2014-09-04 04:34:46.560  info 1724 --- [       thread-2] ationconfigembeddedwebapplicationcontext : closing org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@464e53bb: startup date [thu sep 04 04:19:27 edt 2014]; root of context hierarchy 2014-09-04 04:34:46.573  warn 1724 --- [       thread-2] ationconfigembeddedwebapplicationcontext : exception thrown lifecycleprocessor on context close  java.lang.illegalstateexception: lifecycleprocessor not initialized - call 'refresh' before invoking lifecycle methods via context: org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@464e53bb: startup date [thu sep 04 04:19:27 edt 2014]; root of context hierarchy     @ org.springframework.context.support.abstractapplicationcontext.getlifecycleprocessor(abstractapplicationcontext.java:359)     @ org.springframework.context.support.abstractapplicationcontext.doclose(abstractapplicationcontext.java:888)     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.doclose(embeddedwebapplicationcontext.java:152)     @ org.springframework.context.support.abstractapplicationcontext$1.run(abstractapplicationcontext.java:809)  2014-09-04 04:34:46.601  info 1724 --- [       thread-2] j.localcontainerentitymanagerfactorybean : closing jpa entitymanagerfactory persistence unit 'default' 

has faced same problem? can guys please me?

here have thread dump (when it's hanging):

szabolcs@smartupprod:~$ jstack 2616 2014-09-04 07:33:30 full thread dump java hotspot(tm) 64-bit server vm (25.20-b23 mixed mode):  "attach listener" #14 daemon prio=9 os_prio=0 tid=0x00007fb678001000 nid=0xaae waiting on condition [0x0000000000000000]    java.lang.thread.state: runnable  "localhost-startstop-1" #13 daemon prio=5 os_prio=0 tid=0x00007fb65000d000 nid=0xa46 runnable [0x00007fb662fec000]    java.lang.thread.state: runnable     @ java.io.fileinputstream.readbytes(native method)     @ java.io.fileinputstream.read(fileinputstream.java:246)     @ sun.security.provider.seedgenerator$urlseedgenerator.getseedbytes(seedgenerator.java:539)     @ sun.security.provider.seedgenerator.generateseed(seedgenerator.java:144)     @ sun.security.provider.securerandom$seederholder.<clinit>(securerandom.java:192)     @ sun.security.provider.securerandom.enginenextbytes(securerandom.java:210)     - locked <0x00000000f15173a0> (a sun.security.provider.securerandom)     @ java.security.securerandom.nextbytes(securerandom.java:457)     - locked <0x00000000f15176c0> (a java.security.securerandom)     @ java.security.securerandom.next(securerandom.java:480)     @ java.util.random.nextint(random.java:329)     @ org.apache.catalina.util.sessionidgenerator.createsecurerandom(sessionidgenerator.java:246)     @ org.apache.catalina.util.sessionidgenerator.getrandombytes(sessionidgenerator.java:183)     @ org.apache.catalina.util.sessionidgenerator.generatesessionid(sessionidgenerator.java:153)     @ org.apache.catalina.session.managerbase.startinternal(managerbase.java:573)     @ org.apache.catalina.session.standardmanager.startinternal(standardmanager.java:485)     - locked <0x00000000f1395fc0> (a org.apache.catalina.session.standardmanager)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     - locked <0x00000000f1395fc0> (a org.apache.catalina.session.standardmanager)     @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5476)     - locked <0x00000000f675e1a8> (a org.springframework.boot.context.embedded.tomcat.tomcatembeddedcontext)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     - locked <0x00000000f675e1a8> (a org.springframework.boot.context.embedded.tomcat.tomcatembeddedcontext)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549)     @ java.util.concurrent.futuretask.run(futuretask.java:266)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617)     @ java.lang.thread.run(thread.java:745)  "tomcat-startstop-1" #12 daemon prio=5 os_prio=0 tid=0x00007fb65f35b000 nid=0xa45 waiting on condition [0x00007fb6801d8000]    java.lang.thread.state: waiting (parking)     @ sun.misc.unsafe.park(native method)     - parking wait  <0x00000000f675e178> (a java.util.concurrent.futuretask)     @ java.util.concurrent.locks.locksupport.park(locksupport.java:175)     @ java.util.concurrent.futuretask.awaitdone(futuretask.java:429)     @ java.util.concurrent.futuretask.get(futuretask.java:191)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:1123)     - locked <0x00000000f6705460> (a org.apache.catalina.core.standardhost)     @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:799)     - locked <0x00000000f6705460> (a org.apache.catalina.core.standardhost)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     - locked <0x00000000f6705460> (a org.apache.catalina.core.standardhost)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549)     @ java.util.concurrent.futuretask.run(futuretask.java:266)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617)     @ java.lang.thread.run(thread.java:745)  "destroyjavavm" #10 prio=5 os_prio=0 tid=0x00007fb6a0009800 nid=0xa39 waiting on condition [0x0000000000000000]    java.lang.thread.state: runnable  "main" #9 prio=5 os_prio=0 tid=0x00007fb6a01cf800 nid=0xa44 waiting on condition [0x00007fb6808ef000]    java.lang.thread.state: waiting (parking)     @ sun.misc.unsafe.park(native method)     - parking wait  <0x00000000f6705430> (a java.util.concurrent.futuretask)     @ java.util.concurrent.locks.locksupport.park(locksupport.java:175)     @ java.util.concurrent.futuretask.awaitdone(futuretask.java:429)     @ java.util.concurrent.futuretask.get(futuretask.java:191)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:1123)     - locked <0x00000000f675c598> (a org.apache.catalina.core.standardengine)     @ org.apache.catalina.core.standardengine.startinternal(standardengine.java:300)     - locked <0x00000000f675c598> (a org.apache.catalina.core.standardengine)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     - locked <0x00000000f675c598> (a org.apache.catalina.core.standardengine)     @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:443)     - locked <0x00000000f675c598> (a org.apache.catalina.core.standardengine)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     - locked <0x00000000f675bc98> (a org.apache.catalina.core.standardservice)     @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:731)     - locked <0x00000000f675c340> (a [lorg.apache.catalina.service;)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     - locked <0x00000000f675bd68> (a org.apache.catalina.core.standardserver)     @ org.apache.catalina.startup.tomcat.start(tomcat.java:341)     @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.initialize(tomcatembeddedservletcontainer.java:85)     - locked <0x00000000f6bbad18> (a org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer)     @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.<init>(tomcatembeddedservletcontainer.java:74)     @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainerfactory.gettomcatembeddedservletcontainer(tomcatembeddedservletcontainerfactory.java:289)     @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainerfactory.getembeddedservletcontainer(tomcatembeddedservletcontainerfactory.java:146)     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.createembeddedservletcontainer(embeddedwebapplicationcontext.java:159)     - locked <0x00000000a0d8f098> (a org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext)     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:132)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:476)     - locked <0x00000000a0d8f2c8> (a java.lang.object)     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:120)     @ org.springframework.boot.springapplication.refresh(springapplication.java:691)     @ org.springframework.boot.springapplication.run(springapplication.java:320)     @ org.springframework.boot.springapplication.run(springapplication.java:952)     @ org.springframework.boot.springapplication.run(springapplication.java:941)     @ com.smartup.smartupconfiguration.main(smartupconfiguration.java:78)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:483)     @ org.springframework.boot.loader.mainmethodrunner.run(mainmethodrunner.java:53)     @ java.lang.thread.run(thread.java:745)  "service thread" #7 daemon prio=9 os_prio=0 tid=0x00007fb6a0152000 nid=0xa42 runnable [0x0000000000000000]    java.lang.thread.state: runnable  "c1 compilerthread1" #6 daemon prio=9 os_prio=0 tid=0x00007fb6a0132800 nid=0xa41 waiting on condition [0x0000000000000000]    java.lang.thread.state: runnable  "c2 compilerthread0" #5 daemon prio=9 os_prio=0 tid=0x00007fb6a012f800 nid=0xa40 waiting on condition [0x0000000000000000]    java.lang.thread.state: runnable  "signal dispatcher" #4 daemon prio=9 os_prio=0 tid=0x00007fb6a012d800 nid=0xa3f runnable [0x0000000000000000]    java.lang.thread.state: runnable  "finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007fb6a00ff000 nid=0xa3e in object.wait() [0x00007fb69041e000]    java.lang.thread.state: waiting (on object monitor)     @ java.lang.object.wait(native method)     - waiting on <0x00000000a0487660> (a java.lang.ref.referencequeue$lock)     @ java.lang.ref.referencequeue.remove(referencequeue.java:142)     - locked <0x00000000a0487660> (a java.lang.ref.referencequeue$lock)     @ java.lang.ref.referencequeue.remove(referencequeue.java:158)     @ java.lang.ref.finalizer$finalizerthread.run(finalizer.java:209)  "reference handler" #2 daemon prio=10 os_prio=0 tid=0x00007fb6a00fd000 nid=0xa3d in object.wait() [0x00007fb69051f000]    java.lang.thread.state: waiting (on object monitor)     @ java.lang.object.wait(native method)     - waiting on <0x00000000a04876a0> (a java.lang.ref.reference$lock)     @ java.lang.object.wait(object.java:502)     @ java.lang.ref.reference$referencehandler.run(reference.java:157)     - locked <0x00000000a04876a0> (a java.lang.ref.reference$lock)  "vm thread" os_prio=0 tid=0x00007fb6a00f6000 nid=0xa3c runnable   "gc task thread#0 (parallelgc)" os_prio=0 tid=0x00007fb6a001f000 nid=0xa3a runnable   "gc task thread#1 (parallelgc)" os_prio=0 tid=0x00007fb6a0020800 nid=0xa3b runnable   "vm periodic task thread" os_prio=0 tid=0x00007fb6a0154000 nid=0xa43 waiting on condition   jni global references: 48 

localhost-startstop-1 trying create new instance of securerandom , it's stuck trying read data entropy source. typically occurs because source has been depleted. default entropy source /dev/random. it's known blocking source block when attempt made read random data , none available. source on linux /dev/urandom. main benefit on /dev/random it's non-blocking. there's debate on whether or not using /dev/urandom make things less secure. this article may of interest.

in summary, using /dev/urandom avoid problem you're seeing, @ possible cost of decreased security. can configure spring boot's embedded tomcat instance use /dev/urandom via system property:

-djava.security.egd=file:/dev/./urandom


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -