페이지 이력
Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MagicInfo MagicINFO Server 서비스를 등록/변경/삭제할 수 있다.삭제하는 방법을 가이드합니다. 서비스 등록/삭제MagicInfo MagicINFO Server 서비스 실행시 기본적으로 적용하게 될 옵션을 추가로 지정하거나 변경할 수 있고, 윈도우 서비스에 삭제, 등록하여 적용시킬 수 있다있습니다. 예를 들어 jvm의 memory가 부족할 경우 heap memory나 perm memory 사이즈를 변경할 수 있다있습니다. 설정 변경 방법
파일 경로 : 매직인포설치경로\tomcat\bin\service.bat 2. 해당 파일을 text editor로Text Editor로 연 후 하단으로 이동하여 :installed 아래의 명령을 확인한다확인합니다. 서비스가서비스가 등록되어 실행될때 수행될 옵션을 지정할 수 있다있습니다.
3. 데몬 설정과 관련된 옵션을 추가/수정/삭제 한 후 등록된 서비스를 중지 후 삭제, 재시작한다재시작합니다. 서비스 중지 - 서비스 삭제 - 서비스 설치 - 서비스 재시작 순서로 실행한다실행합니다.
tomcat Tomcat server.xml 설정tomcat이Tomcat이 구동될때 웹서비스가 실행되면서 필요한 각종 설정을 수정 할 수 있다있습니다. 해당 파일을 텍스트 에디터로 연 후 수정이 필요한 값을 수정하여 저장하고, MagicInfoPremium 서비스를 재시작하면 적용되어 실행된다실행됩니다. 파일 경로 : 매직인포설치경로\tomcat\conf\server.xml 기존 옵션 설명
더 다양한 옵션을 확인하고 싶으면 tomcatTomcat 공식 사이트에서 참고할 수 있다있습니다. 설치된 tomcat version에 맞게 설정해야 한다.
Tomcat Cache 삭제tomcat에Tomcat에 의해 웹어플리케이션이 배포되면 기본적으로 cache가 남게 되는데 웹어플리케이션 파일(매직인포설치경로\server)에 변경 사항이 생겼을경우 제대로 구동에 반영되지 않을 수 있다있습니다. 이때는 cache가 저장되는 폴더들의 하위 폴더와 파일들을 삭제하고 MagicInfoMagicINFO Server 서비스를 재시작하면 된다됩니다.
폴더 경로 : tomcat\temp, tomcat\webapps, tomcat\work tomcat Tomcat log 확인 방법tomcatTomcat 구동에 관련한 로그를 확인하려면 tomcat확인하려면 tomcat\logs 폴더 내 파일을 참고하면 된다됩니다. log 내용을 바탕으로 tomcatTomcat 구동시의 문제를 파악하고 튜닝을 할 수 있다있습니다. 로그 파일 종류
Tomcat 모니터링 및 튜닝방법(시간부족으로 다음에 적겠습니다) magicinfoMagicINFO server의 동작이 느려지는 문제 등을 겪을 땐 tomcat이땐 Tomcat이 사용하고 있는 thread 등의 실행 상황을 파악하고, 서버 실행 상황에 맞게 튜닝할 수 있다있습니다.
b. 튜닝
|
Sv translation | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||
Read the following to registThis document describes how to register, edit or delete the MagicINFO Server service. RegistRegister /Delete theDelete the serviceYou can specify options additionally or change options that will be applied by default add new or edit default options when running the service of MagicINFO Server.And it can be applied by deleting from and registering to For applying, you need to delete and register the related Windows service. For example, in case jvm case the JVM is out of memory, you can change the size of heap memory or perm memory. How to change the optionsFirst, go to the path mentioned below and find "service.bat" file. File path : {The path installed the MagicINFO Server}\tomcat\bin\service.bat After opening the file with a text editor, move the page down and check the command under :installed. (Refer the below image) You can specify or change the options that will be executed when the service is registed and started. For the related options, refer the configuration of daemon execution. The list of options : https://commons.apache.org/proper/commons-daemon/procrun.html After modifying(adding/editing/deleting) the options related to daemon configuraionconfiguration, stop, delete and restart the registed registered service. Execute in order : Stop the service → Delete the service → Install the service → Restart the service
tomcat Tomcat Configurations (modify server.xmlsettings)You can modify the required settings that required for executing the web service when running tomcatTomcat. After opening below file with a text editor, modify the options that you need and save, and restart MagicInfoPremium service to take effect. File path : {The path installed the MagicINFO Server}\tomcat\conf\server.xml The descriptions of existing options
더 다양한 옵션을 확인하고 싶으면 tomcat 공식 사이트에서 참고할 수 있다. 설치된 tomcat version에 맞게 설정해야 한다. 사이트 주소
Delete Tomcat cache삭제tomcat에 의해 웹어플리케이션이 배포되면 기본적으로 cache가 남게 되는데 웹어플리케이션 파일(매직인포설치경로\server)에 변경 사항이 생겼을경우 제대로 구동에 반영되지 않을 수 있다. 이때는 cache가 저장되는 폴더들의 하위 폴더와 파일들을 삭제하고 MagicInfo Server 서비스를 재시작하면 된다. cache를 삭제했을때 tomcat이 제대로 구동이 안될수 있으니 삭제 전 반드시 해당 폴더들을 백업 후 삭제해야 한다. 폴더 경로Basically, when a web-application is deployed by Tomcat, the cache is left. Because of cache, when changes are made to the web-application file ({The path installed the MagicINFO Server}\server), it may not be applied properly. In this case, delete all folders and files under the folders that cache is stored and restart the MagicINFO Server service.
Folder path : tomcat\temp, tomcat\webapps, tomcat\work tomcat log 확인 방법tomcat 구동에 관련한 로그를 확인하려면 tomcat\logs 폴더 내 파일을 참고하면 된다. log 내용을 바탕으로 tomcat 구동시의 문제를 파악하고 튜닝을 할 수 있다. 로그 파일 종류 | 파일명 | 설명
File name | Description |
---|---|
catalina.YYYY-MM-DD.log | 서버의기동 Server start, 정지stop, 서비스의개시service start, 정지정보(tomcat 자체에관한stop information (for Tomcat) |
host-manager.log | Tomcat Host Manager Web app 로그 (가상호스트매니저app log (virtual host manager) |
manager.log | Tomcat Manager Web App 로그 App log (웹콘솔web console) |
localhost.log | hostHost (same to VirtualHost 같은) 한정한 로그limited log |
commons-daemon.log | 데몬 Daemon( 백그라운드 서비스) 실행에 대한 로그background service) execution log |
magicinfo*.log | magicinfo 내 각 제품별 로그 |
tomcat 모니터링 및 튜닝 방법
(시간부족으로 다음에 적겠습니다)
magicinfo server의 동작이 느려지는 문제 등을 겪을 땐
tomcat이 사용하고 있는 thread 등의 실행 상황을 파악하고, 서버 실행 상황에 맞게 튜닝할 수 있다.
톰캣 관리자를 이용한 모니터링
톰캣 관리자를 이용해 톰캣을 모니터링 할 수 있다.
서버의 상태와 요청 상태 정보를 제공하므로, 관리자가 문제를 해결할때 이 정보를 유용하게 활용할 수 있다.
JConsole
튜닝
스레드 덤프를 이용해 덤프를 분석하여 성능 저하의 원인을 파악하고 문제를 해결할 수 있다.
jstack
samurai
Log for each products in MagicINFO |
Tomcat Monitoring and how to tune
When you encounter problems such as slow operation of Magicinfo server, you can grasp the execution status of threads used by Tomcat and tune it according to the server execution status.
- Monitoring using Tomcat manager
- Tomcat can be monitored using Tomcat Manager.
- Tomcat Manager provides the server status and request status, so administrators can use this information usefully when solving problems.
Tool : JConsole
정보 Reference Site
JConsole https://docs.oracle.com/javase/7/docs/technotes/guides/management/jconsole.html
2. Tuning
- You can identify the cause of performance issue and solve the problems by analyzing the dump using thread dump.
Tool : jstack, samurai, tda
정보 Reference Site
Jstack https://docs.oracle.com/javase/9/tools/jstack.htm#JSWOR748