I am running a Tridion based (DXA) JAVA web application in IntelliJ. The Run/Debug configuration is based on the standard Local Tomcat server settings.
When I stop the debugging session and start again to try again I get this error in the IntelliJ Event Log
2:12:06 PM All files are up-to-date
2:12:09 PM Error running Tomcat local 8080: Address localhost:1099 is already in use
2:12:12 PM Error running Tomcat local 8080: Unable to open debugger port (127.0.0.1:59985): java.net.SocketException "socket closed"
This only occurs when the ObjectCache with RemoteSynchronization is enabled in the CD storage config (cd_storage_conf.xml) of the webapp.
<Configuration Version="7.1">
<Global>
<ObjectCache Enabled="true">
<Policy Type="LRU" Class="com.tridion.cache.LRUPolicy">
<Param Name="MemSize" Value="16mb"/>
</Policy>
<Features>
<Feature Type="DependencyTracker" Class="com.tridion.cache.DependencyTracker"/>
</Features>
<RemoteSynchronization Queuesize="512">
<Connector Class="com.tridion.cache.JMSCacheChannelConnector" Topic="Tridion" Strategy="AsyncJMS11">
<JndiContext>
I see that there are multiple JAVA process running after the debug session is stopped. After I kill them the debug session starts normal without errors.
Is it normal that processes keep running after a debug session? How can I stop the right processes?