database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Q&A 1335 게시물 읽기
No. 1335
[추가질문] MySQL 로그 파일 분석
작성자
송재호
작성일
2000-04-19 00:08
조회수
7,226

우선 위에서 질문한 yhost.log 를 지우고 한 5분 정도 로그를 기록해 보았습니다.

 

그러니 아래와 같이 400 K Bytes 가 넘는 데.... 입력되는 데이터 용량이

많은편인가요?

 

실제로... DB 서버를 한 3주 정도 돌렸는 데, 500M 정도의 로그 파일이 기록되었습니다.

물론 로그만 그렇게 기록되었지 ... 지우는 작업이 있었기 때문에 실 데이터 용량은 그렇지 않구요.

 

-rw-rw---- 1 root root 418514 Apr 19 00:00 yhost.log

 

 

----------- 아래에 보면 ...

----------- 번호가 있잖아요?

----------- 이 것을 보니, 한 번 MySQL 백엔드에 접속해서 질의한 것들에게

----------- 같은 번호로 붙여지는 것 같은 데..., 이것이 혹시 쓰레드인가요?

 

 

 

.... 그리고 346 번들의 질의문들을 보면 ... 한꺼번에 질의할 수 있는 데, 일부러 따로 따로 했거든요. 그리고 PHP 에서는 select 할 때는 일단 하드디스크상에 존재하는 데이터를 읽었기 때문에 MySQL DB 서버 로그에 기록되고, mysql_fetch_row 할 때는 메모리 상의 데이터를 읽기 때문에 로그에 기록하지 않나요?

 

답변 좀 부탁드립니다.

그럼,

 

 

 

 

345 Query select value from conf where code='homeuse'

345 Query select value from conf where code='adminid'

345 Query select pid from hit where pid='younsok'

345 Quit

000419 0:00:22 346 Connect logy@localhost on

346 Init DB logy

346 Query select value from conf where code='login'

346 Query select value from conf where code='copyright'

346 Query select value from conf where code='defaultlist'

346 Query select value from conf where code='defaultpage'

346 Query select value from conf where code='rooturl'

346 Query select uid from user where id=''

346 Query select value from conf where code='homeuse'

346 Query select value from conf where code='adminid'

346 Query select hid from history where pid='pdsland' and ym='200004' and url='http://myhome.shinbiro.com/~pdsland/default.htm'

346 Query update history set hit=hit+1 where pid='pdsland' and ym='200004' and url='http://myhome.shinbiro.com/~pdsland/default.htm'

346 Query select pid from hit where pid='pdsland' and when='20000419'

346 Query update hit set H00=H00+1 where pid='pdsland' and when=20000419

346 Query select uid from user_agent where pid='pdsland' and when='20000419'

346 Query update user_agent set IE=IE+1, Win98=Win98+1, ko=ko+1 where pid='pdsland' and when='20000419'

346 Query update hit set imp=imp+1 where pid='pdsland' and when=20000419

346 Query select iid from ip where pid='pdsland' and when='20000419' and ip='211.43.246.69'

346 Query insert into ip (pid, when, ip, hit) values ('pdsland', '20000419', '211.43.246.69',1)

346 Quit

347 Connect root@localhost on

347 Shutdown

[Top]
No.
제목
작성자
작성일
조회
1343[추가질문] 시스템 부하. 웹서버와 MySQL 서버
송재호
2000-04-20
6557
1345┕># Re: [추가질문] 시스템 부하. 웹서버와 MySQL 서버 -> 당장 서버 분리하셔야할듯
문태준
2000-04-20 10:09:05
7036
1341# 질문입니다.
초보
2000-04-19
6093
1336[질문]애플릿에서 jdbc연결할 때...
서정우
2000-04-19
6325
1335[추가질문] MySQL 로그 파일 분석
송재호
2000-04-19
7226
1344┕># Re: [추가질문] MySQL 로그 파일 분석 -> 로그 로테이션하세요
문태준
2000-04-20 09:52:29
7316
1334지스템 부하문제, ... 로그 파일 및 에러 파일. 그리고 기타...
송재호
2000-04-18
6541
1337┕>[추가질문] 스템 부하문제, ... 로그 파일 및 에러 파일. 그리고 기타...
송재호
2000-04-19 12:19:03
6930
1338┕># Re: 지스템 부하문제, ... 로그 파일 및 에러 파일. 그리고 기타... -> 일단 부하가 어디서 파악해야
문태준
2000-04-19 14:56:29
7204
1342┕>Re: 지스템 부하문제, ... 로그 파일 및 에러 파일. 그리고 기타...
정재익
2000-04-19 23:41:47
7327
1333MySQL 에러~
윤명욱
2000-04-18
6498
1326error in loading shared libraries
김선규
2000-04-18
6640
1331┕>Re: error in loading shared libraries
정재익
2000-04-18 20:02:19
6462
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다