2022-05-05 19:19:55,147 WARN The web application [nacos] appears to have started a thread named [Hikaripool-1 housekeeper] but has to stop it. This is very likely to create a memory leak. Stack trace of thread:
sun.misc.Unsafe.park(Native Method)gnupgjava.utal.concurrent.locks.LockSupport.parkNanos(Locksupport.java:215) java.util.concurrent.locks.AbstractQueuedSynchronizersCondition0bject.awaitNanos(AbstractQueuedsynchronizer.java:2078)ssh java.util.concurrent.ScheduledThreadPoolExecutor$DelayedworkQueue.take(ScheduledThreadPoolExecutor.java:1093).tmpjava.util,concurrent.ScheduledThreadPoolExecutor$Delayedworkqueue.take(ScheduledThreadPoolExecutor.java;809)binjava.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) java.util.concurrent.ThreadPoolExecutor.runworker(ThreadPoolExecutor.java:1134)bmuSureScipts java.lang.Thread.run(Thread.java:748)java.util.concurrent.ThreadPoolExecutorsworker.run(ThreadPoolExecutor.java:624)gauss_om lost +faund product_pnedify Bradb2022-05-05 19:19:55,147 WARN The web application[nacos] appears to have started a thread named [com.alibaba.nacos.config.server.timer sun.misc.Unsafe.park(Native Method)asyroncbut has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: Iuniagentjava.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)urnagenit_hadap bash jhestoryjava.util.concurrent.locks.AbstractQueuedSynchronizer$Condition0bject.awaitNanos(Abstractqueuedsynchronizer.java:2078)eriang cookiejava.util.concurrent.ScheduledThreadPoolExecutor$Delayedworkqueue.take(ScheduledThreadPoolExecutor.java;1093).mysd_historyjava.util.concurrent.ScheduledThreadPoolExecutor$DelayedworkQueue.take(ScheduledThreadPoolExecutor.java:809) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) java.util.concurrent.ThreadPoolExecutor.runworker(ThreadPoolExecutor.java:1134]
一、 查看nacos.log 日志 (最下面有nacos 集群配置)
出现提示 ,将可能内存栈溢出, 刚开始没有特别注意这个。(其实这个就是主要原因,服务器内存不足。。。。。。蛋疼的提示语)。
后面该 start.sh 里面的空间配置,依旧启动不起来。
WARN The web application (nacos] appears to have started a thread named [Hikaripool-1 housekeeper] but has to stop it. This is very likely to create a memory leak. Stack trace of thread: sun.misc.Unsafe.park(Native Method)gnupg
以下是调试的时候的截图。---- 就是先检查 服务器磁盘是否充足。

这是 nacos.log 日志。
2022-05-05 20:15:41,411 ERROR Error starting Tomcat context. Exception:org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'trafficRevisefilterRegistration’defined in class path resource [com/alibaba/nacos/neming/web/NamingConf g.class]: Bean instantiation via factory method failed; nested exception is org.sprinaframework.beans.BeanInstantiatzonException: Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]:Factory method 'trafficReviseFilterRegistration’ threw exce ption; nested exception is org.springframework.beans.factory.unsatisfiedDependencyException: Error creating bean with name 'trafficRevise Filter': Unsatisfied dependency expressed through field 'serverstatusManager'; nested exception is org.springframework.beans. factory.Bean CreationException: Error creating bean with name'serverstatusManager’:Injection of resource dependencies failed; nested exception is or g.springframework.beans.factory.UnsatisfiedDependencyException:Error creating bean with name 'consistencyDelegate’defined in URL [jar:f ile:/opt/Middleware/nacos/target/nacos-server.jar!/BOOT-INF/ib/nacos-naming-1.4.0.jar!/com/alibaba/nacos/naming/consistency/DelegateConstoring istencyServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework. bean

复习一下 nacos 配置。 可以用集群启动一台服务器~
1. 配置nacos本身数据库 application.properties

2.配置集群机器,cp cluster.conf cluster.conf.example

3. 配置启动参数 startup.sh 修改里面的配置。 其实不用改也可以启动 ,但是你可以改造一下。
(sh startup.sh -m standalone) 单机启动。 默认的是集群启动
或者在\bin下修改startup.cmd文件中的set MODE="standalone",使之默认为单机方式
启动 ./startup.sh -o 8848 可以 添加命令参数的方式启动指定端口。传送门-----Nacos在企业生产中如何使用集群环境? - 哔哩哔哩
4. 这时可以直接观察日志:tail -f /usr/local/nacos/nacos/logs/start.out

网友评论