[Resolved] Maximum LiteSpeed cache size

Status
Not open for further replies.
#1
Hi,

what is the maximum cache size in Litespeed?
I just found this information:

Specifies the maximum size of an object that can be stored in the cache directory. The default value is "128KB".
Syntax: Integer number


Tip(s):

• [Performance] It is not recommended to store large objects with low hit rates in the cache. This may result in high I/O wait and reduce overall server performance.

What kind of size do i enty? KB? Byte?

I have a repsonse I like to cache. The size is about 3 MB.
But the reponses is not cached. Can anyone help?
 

Pong

Administrator
Staff member
#2
If you go to Wed Admin, Configuration-> Server-> Tuning->Static File Delivery Optimization, you will find such configuration as (bytes)

Max Cached Small File Size (bytes) 4096
Total Small File Cache Size (bytes) 20M
Max MMAP File Size (bytes) 256K
Total MMAP Cache Size (bytes) 40M
Use sendfile() Yes

the above are optimized configuration. Your file size is well over Max Cached Small File Size and Max MMAP File Size.

If you really need to, adjust those setting.

As you have already found out: It is not recommended to store large objects with low hit rates in the cache.
 
#3
Hi,
thank you for your answer and sorry for my late feedback.

It doen't help:

My values are:
Max Cached Small File Size (bytes) 1048576
Total Small File Cache Size (bytes) 60M
Max MMAP File Size (bytes) 4096K
Total MMAP Cache Size (bytes) 80M
Use sendfile() Yes

The size of my response I like to cache is 1.4 MB.
My other responses are cached successfully.
 
Last edited:

Pong

Administrator
Staff member
#4
Just realized you may mean the max object file size for ls-cache.

Which version of LSWS do you use?
4.x.x can cache file upto 1M while the latest 5.0.6 can cache file upto 10M.

Please upgrade LSWS to latest version:
/usr/local/lsws/admin/lsup.sh -f -v 5.0.6

also set Max Object Size to be over your requirement, such as "2048000".
 
#5
We've contacted the support.
They made upgrade a upgrade to the latest version.
The cache worked.

But we can't purge the cache via PHP.
The support told us it's a bug by litespeed server.

Then they made a downgrade to 4.2.23.
Now the made upgrade back to 5.0.6 - I can't purge the cache via PHP.

I'm confused and have to contact my server admin, who have the contact to lite speed support
 
Status
Not open for further replies.
Top