[Xapian-discuss] CPU high usage

Andrey alpha04 at netvigator.com
Mon Jun 22 11:48:35 BST 2009


Hi

I found myself the solution on the CPU jumps in php binding here.

after i changed to use xapian remote to handle the database quires 
@127.0.0.1:3333
the CPU usage problem is sloved.
The php process all drops back down to 0.3-0.7% and the xapian server will 
jumps a bit to 3-5% (for multiple calls) but i think its normal.
Same query which will cause 6%CPU per request
Xapian::Query(movie:(pos=1,wqf=12))
Now all back to below 1%CPU

Another one tiny question here:

when i use $db = remote_open("127.0.0.1",33333);

it seems that the xapian server has aquired the write lock and if i keep 
refresh the page, it will throw error about the write lock issue.

I can slove this by restarting the server without writer mode.
But is there method to open that remote DB with read mode only? in php 
binding.

Cheers
Andrey 





More information about the Xapian-discuss mailing list