HOME | 정보변경 |



 현재경로 : BOARD -> [ 묻고답하기 게시판 보기 ]


작성자   관리자
날짜   2019-04-20
조회   7706
제목    RE : [공개게시글] JSP호스팅은 시스템에 150MB 이상의 메모리를 사용할 수 없습니다.
Last Update   2019-04-20 22:57:34
내용

 

회원님이 직접 메모리 사용량에 대해 측정하는 것은 쉽지않아 보입니다.

 

일단 개발단의 문제는 아닌 거 같고요, 다음과 같이 강제 종료 후 시스템에 검출된 내역을 기준으로 설명을 드립니다.

 

[ pid ]   uid  tgid total_vm      rss cpu oom_adj oom_score_adj name
[14359]     2 14359   105669     4047   1       0             0 httpd
[14369]     2 14369   105173     3648   1       0             0 httpd
[14399]     2 14399   105669     4375   1       0             0 httpd
[14936]     0 14936    26697     1230   1       0             0 sshd
[14953]  1167 14953    26697      520   2       0             0 sshd
[14954]  1167 14954     2333      329   1       0             0 bash
[14959]     0 14959    26697     1231   1       0             0 sshd
[14961]  1167 14961    26697      503   1       0             0 sshd
[14962]  1167 14962     2333      327   0       0             0 bash
[14978]  1167 14978     1026      120   2       0             0 tail
[15179]  1167 15179  1471300    39594   0       0             0 java
Memory cgroup out of memory: Kill process 15179 (java) score 148 or sacrifice child
Killed process 15179, UID 1167, (java) total-vm:5885200kB, anon-rss:152272kB, file-rss:6104kB

 

  • TOMCAT(java) : 혹시 heap 메모리를 얼마나 잡으셨나요? 현재 시스템에는 5GB가 넘는((java) total-vm:5885200kB) 가상 메모리를  할당(사용중이라고)했다고, 보고되고 있습니다.

 

이는 큰 사이즈의 가상 메모리 예약을 통해, 실제 메모리를 여유있게 사용할 수 있는 이점은 있으나, 홍쓰넷의 JSP 서비스의 경우 각 회원님의 실제 메모리150MB 이상, 사용할 수 없기 때문에.. 회원님 처럼, 근본적인 이슈를 해결하기 어렵습니다. 즉, 회원님이 사용하는 실제 메모리가(총 152MB) 시스템에 감지(anon-rss:152272kB)되어, 강제 종료된 것입니다.

 

따라서 다음과 같이 점검 가이드를 드리오니, 수행해보시기 바랍니다.

 

  • TOMCAT 메모리 설정을 최소화 해보시기 바랍니다.
  • 최소화 설정 후 회원님의 스프링 기반, Application구동 여/부를 확인하시면서... 홍쓰넷 환경에 맞게 최적화하셔야 합니다.

 

 

마지막으로 이 이슈를 해결하신 후 말씀해주시면,

 

현재 : 150MB 메모리 제한 (홍쓰넷의 모든 JSP 호스팅 회원님들은 150MB 이상의 실제 메모리를 사용할 수 없습니다)

최종 : 250MB 메모리 제한 (회원님은 시스템 사용 및 홍쓰넷 활동이 활발하므로, +100MB 서비스 제공)

 

단, 그 이상은 어려울 거 같습니다.

 

아래의 에러는 다른 회원님들도 참고하시면, 좋을 내용이라.. 부득히하게 "공개" 로 설정한 점, 양해 바랍니다.

그럼 이용해주셔서 감사합니다.



---------------------------------------------------------------------- Writed Content ----------------------------------------------------------------------

답변 감사드립니다!

>

자바 메모리에 대한 용량초과는 정말 생각도 못했네요..

>

로컬에서는 잘 뜨길래 고려를 못 했었는데 그런 문제가!

>

 

>

path는 잡아주셨다니 jdk는 나중에 다시 시도해보겠습니다 ㅎㅎ(아직은 현재도 잘 되는 것 같기도 해서..!)

>

전에는 톰켓 켜지자마자 죽었는데 지금은 그래도 로그가 쭉 뜨긴 뜹니다만 도중에 죽습니다.

>

아직 메모리 측정은 못해봤는데 스프링으로 만들어서 그런지 메모리를 상당히 잡아먹긴 한가봅니다.

>

약간 코딩 문제일까요?? 메모리를 줄여보는 팁들을 한번 배워봐야겠습니다.

>

 

>

예전에는 잘 됐다는 것이 그때는 메모리가 아마 다 안 찼었나봅니다.

>

홈피 기능을 더 추가했더니 그 뒤로 안되더라구요.

>

지금은 로그가 좀 더 길어졌지만 아직 여전히 죽어있습니다.

>

감사합니다!

>

 

>

--- log ---

>

Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.67
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Dec 7 2015 13:07:11 UTC
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.67.0
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 2.6.32-754.3.5.el6.x86_64
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /home2/chiro76/jdk1.8.0_201/jre
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_201-b09
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /home2/chiro76/tomcat
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /home2/chiro76/tomcat
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=/home2/chiro76/tomcat/conf/logging.properties
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.security.egd=file:/dev/./urandom
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/home2/chiro76/tomcat/endorsed
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/home2/chiro76/tomcat
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/home2/chiro76/tomcat
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/home2/chiro76/tomcat/temp
Apr 20, 2019 12:40:37 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home2/chiro76/jdk1.8.0_201/bin/../jre/lib/amd64/jli:/home2/chiro76/tomcat/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Apr 20, 2019 12:40:37 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-9010"]
Apr 20, 2019 12:40:37 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1059 ms
Apr 20, 2019 12:40:37 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 20, 2019 12:40:37 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.67
Apr 20, 2019 12:40:44 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Apr 20, 2019 12:40:44 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Apr 20, 2019 12:40:45 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Sat Apr 20 12:40:45 GMT 2019]; root of context hierarchy
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [/home2/chiro76/public_html/WEB-INF/classes/config/spring/context-datasource.xml]
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [/home2/chiro76/public_html/WEB-INF/classes/config/spring/context-mapper.xml]
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 5289 ms
Apr 20, 2019 12:40:55 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [5,023] milliseconds.
Apr 20, 2019 12:40:55 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'action'
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'action': initialization started
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'action-servlet': startup date [Sat Apr 20 12:40:55 GMT 2019]; parent: Root WebApplicationContext
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/action-servlet.xml]
INFO : org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/error.do]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.CommonExceptionAdvice.exception(java.lang.Exception)
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/insUser.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.insUser(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/post.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.goBoardDetail(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/useOfPack.do]}" onto public java.lang.String com.ch.web.MyController.goUseOfPack(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/shoulderPain.do]}" onto public java.lang.String com.ch.web.MyController.goShoulderPain(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/backache.do]}" onto public java.lang.String com.ch.web.MyController.goBackache(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/recruitment.do]}" onto public java.lang.String com.ch.web.MyController.goRecruitment(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/program.do]}" onto public java.lang.String com.ch.web.MyController.goProgram(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/event.do]}" onto public java.lang.String com.ch.web.MyController.goEvent(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/updUser.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.updUser(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/delUser.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.delUser(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/insBoard.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.insBoard(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/delBoard.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.delBoard(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/updBoard.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.updBoard(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/insComment.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.insComment(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/userListPage.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.goUserListPage(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/main.do]}" onto public java.lang.String com.ch.web.MyController.goMain() throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/join.do]}" onto public java.lang.String com.ch.web.MyController.goJoin(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/userList.do]}" onto public java.lang.String com.ch.web.MyController.goUserList() throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/userDetail.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.goUserDetail(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/board.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.goBoardPage(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/boardListPage.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.goBoardListPage(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/write.do],methods=[POST]}" onto public org.springframework.web.servlet.ModelAndView com.ch.web.MyController.goWritePage(com.ch.vo.CommandMap) throws java.lang.Exception
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: WebApplicationContext for namespace 'action-servlet': startup date [Sat Apr 20 12:40:55 GMT 2019]; parent: Root WebApplicationContext
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: WebApplicationContext for namespace 'action-servlet': startup date [Sat Apr 20 12:40:55 GMT 2019]; parent: Root WebApplicationContext
INFO : org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver - Detected @ExceptionHandler methods in commonExceptionAdvice
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/css/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/fonts/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1'
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/images/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2'
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/js/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#3'
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'action': initialization completed in 10784 ms
Apr 20, 2019 12:41:06 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home2/chiro76/public_html/js

>

 

번호 구분 제목 작성자 작성일 조회수
무료호스팅   문의글에 대한 답변 범위(문의 등록 시 필독) 관리자2017-02-2028653
493 무료호스팅  박상일 2019-12-1010
492  관리자 2019-12-2712
491 서버  박준형1 2019-07-0419
490 무료호스팅  이동수 2019-06-275
489  관리자 2019-07-0112
488 서버  신현진 2019-06-174
487  관리자 2019-06-185
486 서버  신현진 2019-06-143
485 무료호스팅  허성수 2019-06-134
484  관리자 2019-06-143
483 무료호스팅  장선해 2019-06-025002
482  관리자 2019-06-054
481 무료호스팅  고코더 2019-05-144
480  관리자 2019-05-152
479 무료호스팅  박상일 2019-05-033
478  관리자 2019-05-043
477 기타  김태훈 2019-04-2211
476 서버  최운규 2019-04-204
475  관리자 2019-04-207706
474 서버  최운규 2019-04-197

Back to Top

Copyright © Since 2010-2021  hongs All rights Reserved.↑ 맨 위로 이동