[kldp.org]Error creating new session

송효진의 이미지

phpBB : Critical Error 

Error creating new session

DEBUG MODE

INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin) VALUES ('8945e1b72bb9dc7c050fedcfd7f622bb', -1, 1131105818, 1131105818, 'dd936f20', 3, 0, 0)

Line : 209
File : sessions.php 

요새 이게 자주 보이는데요.

서버 자체는 그다지 느리다고 생각이 안되는데,

락 제한 설정을 조금만 높혀보면 어떨까요?

김정균의 이미지

송효진 wrote:
phpBB : Critical Error 

Error creating new session

DEBUG MODE

INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin) VALUES ('8945e1b72bb9dc7c050fedcfd7f622bb', -1, 1131105818, 1131105818, 'dd936f20', 3, 0, 0)

Line : 209
File : sessions.php 

요새 이게 자주 보이는데요.

서버 자체는 그다지 느리다고 생각이 안되는데,

락 제한 설정을 조금만 높혀보면 어떨까요?

phpbb session table 이 heap table 인데, 500 개가 한계인가 그럴 겁니다. 원래는 제거 되어야 정상인데 제거되지 않는 record 들이 쌓여서 그럴 겁니다. 제 phpbb 에서 그런 문제를 만난적이 있어서 전, cron 으로 하루에 한번씩 heap table 을 지워 버리거든요.

송효진의 이미지

그럼 1000개로 늘리면 어떨까요?

http://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html

Quote:
#

MEMORY table contents are stored in memory, which is a property that MEMORY tables share with internal tables that the server creates on the fly while processing queries. However, the two types of tables differ in that MEMORY tables are not subject to storage conversion, whereas internal tables are:

*

If an internal table becomes too large, the server automatically converts it to an on-disk table. The size limit is determined by the value of the tmp_table_size system variable.
*

MEMORY tables are never converted to disk tables. To ensure that you don't accidentally do anything foolish, you can set the max_heap_table_size system variable to impose a maximum size on MEMORY tables. For individual tables, you can also specify a MAX_ROWS table option in the CREATE TABLE statement.

php.ini 도

session.gc_probability = 1
session.gc_divisor     = 30

이렇게 고치면 좀 나을것 같네요.