============================================================================에러내용START

2023-04-21 09:21:14,172 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."web.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deploy               ment.unit."web.war".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "web.war"
        at org.jboss.as.server@13.0.3.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
        at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
        at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
        at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0156: Failed to index deployment root for annotations
        at org.jboss.as.server@13.0.3.Final//org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:110)
        at org.jboss.as.server@13.0.3.Final//org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51)
        at org.jboss.as.server@13.0.3.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
        ... 8 more
Caused by: java.lang.OutOfMemoryError: Java heap space
        at org.jboss.jandex@2.1.3.Final//org.jboss.jandex.StrongInternPool.resize(StrongInternPool.java:269)
        at org.jboss.jandex@2.1.3.Final//org.jboss.jandex.StrongInternPool.intern(StrongInternPool.java:257)
        at org.jboss.jandex@2.1.3.Final//org.jboss.jandex.NameTable.intern(NameTable.java:92)
        at org.jboss.jandex@2.1.3.Final//org.jboss.jandex.Indexer.intern(Indexer.java:1173)
        at org.jboss.jandex@2.1.3.Final//org.jboss.jandex.Indexer.processMethodInfo(Indexer.java:293)
        at org.jboss.jandex@2.1.3.Final//org.jboss.jandex.Indexer.index(Indexer.java:1598)
        at org.jboss.as.server@13.0.3.Final//org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:99)
        ... 10 more

2023-04-21 09:21:14,388 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "web.war")]) - failure description: {"WFLYCTL0080: F               ailed services" => {"jboss.deployment.unit.\"web.war\".STRUCTURE" => "WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"web.war\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0156: Failed to index deployment root for annotations
    Caused by: java.lang.OutOfMemoryError: Java heap space"}}
2023-04-21 09:21:14,393 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "web.war" (runtime-name : "web.war")
2023-04-21 09:21:14,402 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."web.war".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "web.war"

2023-04-21 09:21:14,453 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
2023-04-21 09:21:14,453 INFO  [com.arjuna.ats.jbossatx] (Controller Boot Thread) ARJUNA032035: Resuming transaction recovery manager
2023-04-21 09:21:14,455 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 21.0.2.Final (WildFly Core 13.0.3.Final) started (with errors) in 25086ms - Started 444 of 717 services (1 services failed or                missing dependencies, 470 services are lazy, passive or on-demand)

 

============================================================================에러내용END

에러가 나길래.. 가장 위 에러부터 구글링 했는데 뭔 라이브러리가 없어서 어디가 어떻고 저떻고 ... 모르겠다

훈장님 찬스를 썼는데,

바------------------아로 저 빨간색 "Caused by: java.lang.OutOfMemoryError: Java heap space"을 캐치하시더니 메모리 문제네 라고 하셨다..!!

 

오케이 메모리 오케이.

다시 구글링을 한다

 

==========================================================================해결방법 START

누군가가..

"How to increase heap memory for wildfly?" 라고 올려놨고

 

대답하길.."edit bin/standalone.conf and look JAVA_OPTS and change the -Xmx option according to your needs"

 

..

다시한번 더 구글링

..

또 다른 누군가가..

"set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m and increase the -Xmx value."

 

개꿀!!!!!!!!!!!!!! 퍼즐이 맞춰짐!!!! 재기동함 에러안남 개꿀!!!!!!!!!!!!!!!!!!!!!!

==========================================================================해결방법 END

 

+ 추가 메모리 관련 명령어

 

# free 메모리 확인 #

[user@aidataset-webwas1 wildfly-21.0.2.Final-testtestet]# free -m
              total        used        free      shared  buff/cache   available
Mem:           7794        5663         463         377        1668        1498
Swap:             0           0           0

 

# 실시간 메모리 확인 #

root@aidataset-webwas1 wildfly-21.0.2.Final-testtestet]# top
top - 09:59:34 up 685 days, 16:15,  2 users,  load average: 0.96, 0.37, 0.22
Tasks: 135 total,   1 running, 134 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.1 us,  2.0 sy,  0.0 ni, 97.9 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  7982048 total,  1129152 free,  4791044 used,  2061852 buff/cache
KiB Swap:        0 total,        0 free,        0 used.  2536476 avail Mem

   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
  9639 jboss     20   0 4204156 758156      0 S   0.3  9.5   2396:32 java

 

★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆

개꿀!!!!!!★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆

 

 

 

 

 

 

 

 

 

 

 

 

 

+ Recent posts