当前位置:网站首页>Jeecg restart alarm 40001

Jeecg restart alarm 40001

2022-07-01 08:45:00 sirwsl

Report errors

30-May-2022 09:52:49.525  Information  [main] org.apache.catalina.startup.Catalina.start Server startup in 70168 ms
sessionCreated:C1BE6C7539EDDD600FE1DAB8A001BF77
[2022-05-30 09:52:54] [WARN] [net.sf.ehcache.distribution.RMICacheManagerPeerListener:120] Explicitly setting the listener hostname to 'localhost' is not recommended. It will only work if all CacheManager peers are on the same machine.
[2022-05-30 09:52:54] [ERROR] [net.sf.ehcache.distribution.RMICacheManagerPeerListener:330] Exception starting RMI registry. Error was Port already in use: 40001; nested exception is:
        java.net.BindException:  The address is already in use  (Bind failed)
java.rmi.server.ExportException: Port already in use: 40001; nested exception is:
        java.net.BindException:  The address is already in use  (Bind failed)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:346)

problem

restart jeecg Of tomcat after , The above error , function netstat -tunlp |grep 40001 Service found , But check it out pid We can't find it
 Insert picture description here
function lsof -i:40001 Then a pile of these things appeared
 Insert picture description here

solve

1: Look for ehcache.xml file

find ./ -name ehcache.xml

 Insert picture description here 2: edit ehcache.xml file , find cacheManagerPeerListenerFactory node
take 40001 Just change it port, preservation , It's over
 Insert picture description here

原网站

版权声明
本文为[sirwsl]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207010839000046.html