본문 바로가기

분류 전체보기714

bash -- Standard Shell 원문 : http://devmanual.gentoo.org/tools-reference/bash/index.html bash -- Standard Shell A thorough understanding of bash programming is vital when working with ebuilds. bash 프로그래밍을 철저히 이해하는 것은 ebuilds로 작업을 할때 필수적이다. * A through : 빈틉없는, 철두철미한 * vital : 필수적인 bash Conditionals Basic Selection 기본 조건 연산자인 if 문 : if something ; then do_stuff fi Multiple Selection Multiple pronged selection can be done.. 2014. 12. 21.
Performance, nGrinder 설치 Controller 설치 다운로드 : http://sourceforge.net/projects/ngrinder/files Jenkins와 같은 WAR(Web Archive) 파일로 되어 있다. Jenkins 실행 처럼 톰캣과 같은 웹 애플리케이션 서버를 이용할 수 있다. (주의사항 : 경로에 공백이 포함되면 안됨) Run as a self executable command 실행 $ java -jar ngrinder-controller-X.X.war nGrinder needs quite big perm-gen memory 라는 에러 메시지가 출력될 것이다. (SVNKit, maven, jetty webserver, groovy, python등과 같은 많은 라이브러리가 포함되어 매우 큰 PermGen mem.. 2014. 12. 3.
개발 노트, SQLAlchemy PoolTimeout 문제 문제 : pool 사용 시 설정된 수보다 많은 session을 사용하려고 할때 timeout이 발생 pool_recycle 값을 셋팅해서 mysql과의 Connection 문제는 해결 했는데 또 같은 에러인 'MySQL server has gone away'가 발생했다.정상적으로 pool에서 session을 얻어올 때 메시지 > checked out from pool pool의 한계치에 도달했을때 메시지 > being returned to pool > rollback-on-return timeout 발생 메시지 > QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30 결론은 pool을 사용할 때 리소스를 반환해주지 .. 2014. 11. 25.
개발 노트, 서버와 Mysql 간 Encoding 문제 문제서버에서 engine driver 사용시 한글 입력 하면 깨지는 문제가 발생했다. 서버(유니코드) -> engine driver(라틴-1) -> mysql (라틴-1) 유니코드를 라틴-1 코드로 변환하려다보니 한글이 깨지게 되었다.해결MySQL의 CharacterSet을 변경한다.my.cnf 파일 수정한다.character-set-encoding=utf8 추가 및 수정서버쪽 engine의 Connect String에 characterset을 utf8로 셋팅하도록 한다. mysql://id:password@192.168.x.x/database?charset=utf8 Tipmysql 서버가 라틴-1으로 되어 있더라도 engine에서 인코딩을 변환하는 작업만 하지 않는 다면 한글이 깨지진 않는다. (mys.. 2014. 11. 25.