SERVER SETUP:
- LAMP
DEVICE DETECTION:
- wurfl - php api
Server Lowest Traffic : 20 request per minute
PROBLEM :
When wurfl started an auto update our server Load Average starts to fire up from 1.00 to 200.00, and eat up almost 90% of memory.
QUESTION:
1) Does anybody here who encountered the same problem when auto_update set to true under wurfl_config.php?
2) If it's true that the configuration on auto_update is the real culprit of Load Average fire up, what are the best practice or alternative to do an update on wurfl?
3) On our apache log I saw this error which occurred after auto_update kick-in...
Why I've got this error?
Here's the wurfl_config.php :
- LAMP
DEVICE DETECTION:
- wurfl - php api
Server Lowest Traffic : 20 request per minute
PROBLEM :
When wurfl started an auto update our server Load Average starts to fire up from 1.00 to 200.00, and eat up almost 90% of memory.
QUESTION:
1) Does anybody here who encountered the same problem when auto_update set to true under wurfl_config.php?
2) If it's true that the configuration on auto_update is the real culprit of Load Average fire up, what are the best practice or alternative to do an update on wurfl?
3) On our apache log I saw this error which occurred after auto_update kick-in...
Code:
[Thu Jul 29 00:01:24 2010] [error] [client 124.105.12.35] Thu, 29 Jul 2010 00:01:24 +0800 [domU-12-31-39-04-2C-52 18383][parse] Trying to load XML patch file: ./sylph/wurfl_patch_29jun2010.xml [Thu Jul 29 00:01:24 2010] [error] [client 124.105.12.35] Thu, 29 Jul 2010 00:01:24 +0800 [domU-12-31-39-04-2C-52 18383][parse] Loaded, now parsing [Thu Jul 29 00:01:24 2010] [error] [client 124.105.12.35] Thu, 29 Jul 2010 00:01:24 +0800 [domU-12-31-39-04-2C-52 18383][parse] Updating device generic [Thu Jul 29 00:01:24 2010] [error] [client 124.105.12.35] Thu, 29 Jul 2010 00:01:24 +0800 [domU-12-31-39-04-2C-52 18383][parse] generic: setting config_instruction_id=default [Thu Jul 29 00:01:24 2010] [error] [client 124.105.12.35] Thu, 29 Jul 2010 00:01:24 +0800 [domU-12-31-39-04-2C-52 18383][parse] generic: setting id=generic .... ..... [Thu Jul 29 00:03:14 2010] [error] [client 124.105.12.35] Thu, 29 Jul 2010 00:03:14 +0800 [domU-12-31-39-04-2C-52 18378][parse] ERROR: Unable to remove ./sylph/tmp/sylph-data/agent2id.php4
Why I've got this error?
Here's the wurfl_config.php :
Code:
define("WURFL_CONFIG", true); define("DATADIR", $Sylph . 'tmp/sylph-data/'); define("WURFL_PARSER_FILE", $Sylph . 'wurfl_parser.php'); define("WURFL_CLASS_FILE", $Sylph . 'wurfl_class.php'); define ("WURFL_FILE", $Sylph. "wurfl_21jun2010.xml"); define ("WURFL_LOG_FILE", DATADIR."wurfl_" . date('Y-m-d') . ".log"); define ("LOG_LEVEL", LOG_INFO); define ("WURFL_USE_CACHE", true); define ("WURFL_USE_MULTICACHE", false); define ("CACHE_FILE", DATADIR."wurfl_cachefile.php"); define ("MULTICACHE_DIR", DATADIR."multicache/"); define ("MULTICACHE_TMP_DIR", DATADIR."multicache_tmp/"); define ("MULTICACHE_TOUCH", DATADIR."multicache.lockfile"); define ("MULTICACHE_SUFFIX",".php"); define ("WURFL_AUTOLOAD", true); define ("WURFL_CACHE_AUTOUPDATE", true); define ("WURFL_AGENT2ID_FILE", DATADIR."agent2id.php4"); define ("MAX_UA_CACHE", 50); define("WURFL_PATCH_FILE", $Sylph . 'wurfl_patch_29jun2010.xml'); define("WURFL_PATCH_DEBUG", true);
Comment