반응형

development 4

[Tip | MySQL] MySQL Deadlock found when trying to get lock

java.sql.SQLException: Deadlock found when trying to get lock; try restarting transaction Query: update …> 작성일 : 2015-10-05> OS : CentOS 문제상황특정 테이블에 쿼리 실행시 데드락이 발생하였다.java.sql.SQLException: Connection is closed.java.sql.SQLException: Deadlock found when trying to get lock; try restarting transaction Query: update table set ... where field1=? and field2=? Parameters: [test1,test2] 문제확인mysql의 경우 ..

Tip 2025.01.14

[Tip | Memcached] MemcachedClient getClient Exception

MemcachedClient getClient Exception : java.lang.IllegalStateException: Shutdown in progress> 작성일 : 2015-10-14> OS : CentOS  문제상황(Was(Tomcat) * 2) + DB(Mysql)2 + memcached\1 구성의 게임서버환경에서 서비스가 정지되어 버리는 현상이 발생하였다. 접속시간대 로그는 다음과 같이 Xmemcached가 멈췄다는 에러를 출력하고 있었다. 그리고 이상한건 WAS가 죽어있었다.ERROR ({http-bio-80-exec-40} MemcachedConnection.java[getClient]:252) [2015-10-14 18:49:45,948] - ==> MemcachedClient g..

Tip 2025.01.14

[Tip | Tomcat] Several ports ... already in use.

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.> 작성일 : 2017.03.31> OS : Windows7  문제상황개발중 비정상적인 was 종료로 인해 다음과 같은 에러와 함께 재시작 되지 않는다. 실 운영환경에서도 이런경우가 있다.Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To ..

Tip 2025.01.09

[Source | MySQL or MariaDB] 데이터베이스 백업설정 및 데이터 이관

데이터베이스를 주기적으로 파일로 백업하고 관리하는 과정을 정리한다.> 작성일 : 2017-09-27 쉘스크립트 파일을 작성한다.vi {저장경로}/Backup.sh#!/bin/bashtoday=`date +%Y%m%d`deleteDay=`date +%Y%m%d -d '-[백업파일보존일수]days'`backupDirectory="[파일저장경로]"dbList='[데이터베이스1] [데이터베이스2]'### create Folder ###echo "createDay : "$today/bin/mkdir -p ${backupDirectory}/${today}_allcd ${backupDirectory}/${today}_allecho "OK"### backup Project ###for db in $dbList; do ..

Source 2025.01.09
반응형