우선 위에서 질문한 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
|