기본 콘텐츠로 건너뛰기

tomcat outover memory문제

* 자바에서 기본적으로 설정되어있는 메모리 사이즈를 늘려줌

$ cp strartup.sh start.sh

$ vi startup.sh

# 사용하는 메모리사이즈를 조절함. tomcat 버젼이 5.x이상인경우에만 사용

# tomcat버젼에 4.x이하인경우에는 TOMCAT_OPTS 환경변수를 사용함.

export CATALINA_OPTS="-Xms256m -Xmx512m"

umask 0
/usr/local/tomcat/bin/start.sh

$ startup.sh


* 참고


$ java -X
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xloggc:<file> log GC status to a file with time stamps
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size

-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see documentation)
-Xcheck:jni perform additional checks for JNI functions
-Xshare:off do not attempt to use shared class data
-Xshare:auto use shared class data if possible (default)
-Xshare:on require using shared class data, otherwise fail.


The -X options are non-standard and subject to change without notice.

댓글

이 블로그의 인기 게시물

windows에서 python 2.7 + paramiko 설치하기

linux사용할때는 gcc가 있어서 그냥 모듈들 다운받아서 사용했는데 귀찮아짐에 따라서 pip그냥 사용할려구요 packing할것도 아니고 그냥 개인적인 util이나 개발에 사용할려고 pip사용 pip install pyCrypto pip install paramiko 컴파일 해야하는 모듈이 있는것 같네요. cygwin이나 이런것 사용할려고 하다가 visual stdio 가 설치되어 있어서 일단 visual stdio사용 해서 "VS2013 x86 네이티브 도구 명령 프롬프트" 모드로 실행 64bit컴파일 하실분은 "VS2013 x64 네이티브 도구 명령 프롬프트" 모드로 실행하심 됩니다. 컴파일 할려고 하니깐 ㅇㅅㅇ);;;;; 컴파일 오류....... C:\Python27\Scripts\pip run on 02/05/14 13:45:09 Downloading/unpacking pyCrypto   Getting page https://pypi.python.org/simple/pyCrypto/   URLs to search for versions for pyCrypto:   * https://pypi.python.org/simple/pyCrypto/ ..... building 'Crypto.Random.OSRNG.winrandom' extension warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath. error: Unable to find vcvarsall.bat  2013버젼 인경우에 환경 변수 추가해야하네요... 다시 pip실행하니깐 잘 컴파일 되네요. ㅎㅎ pip를 사용하니깐 신세계가 두둥~~~~ 좋네요. 환경설정 visual stdio 2013 SET VS90COMNTOOLS=%VS120COMNTOOLS...

oradiag_??? 로그 생성안되게 하는 방법

cx_Oracle이나 oci로 개발된 프로그램을 사용하다 보면 $HOME에 orgdiag_사용자계정으로 로그가 대량으로 저장되는 경우가 발생합니다. 이런 경우에 로그가 남지 않도록 하던지 아님 다른 경로에 저장하는 방법은  아래와 같은 방법으로 처리할 수 있습니다. 로그 안남기는 방법은. 환경변수에 추가 export TNS_ADMIN=/home/eek/conf/ 해당경로에 sqlnet.ora파일 생성해서 DIAG_ADR_ENABLED=off TRACE_LEVEL_CLIENT=off LOG_FILE_CLIENT=/dev/null 설정값을 추가하면 로그 파일이 생성되지 않음. 자세한 설정 정보는 http://docs.oracle.com/cd/B28359_01/network.111/b28317/sqlnet.htm#BIIDEAFI 참고하세요. 끝.

Oracle Instant Client + sqlldr install

Instant Client Downloads + SQL*Loader 설치 http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 아래와 같이 버젼에 따라서 3가지를 다운로드 합니다. basic, sdk, sqlplus instantclient-basic-linux.x64-11.2.0.3.0.zip instantclient-sdk-linux.x64-11.2.0.3.0.zip instantclient-sqlplus-linux.x64-11.2.0.3.0.zip 설치되어있는 oracle 에서 rdms , nls , sqlldr 를 복사합니다. cp -r /home/oracle/product/10/rdbms ~eek/usr/instantclient_10_2/ cp -r /home/oracle/product/10/nls ~eek/usr/instantclient_10_2/ # 파일 복사 cp -r /home/oracle/product/10/bin/sqlldr ~eek/usr/instantclient_10_2/ # 권한설정 chown -R eek.eek ~eek/usr/instantclient_10_2/ # 환경변수 등록 export NLS_LANG=AMERICAN_AMERICA.KO16KSC5601 export ORACLE_HOME=/home/eek/usr/instantclient_10_2 export ORA_NLS10=$ORACLE_HOME/nls/data