Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Yac::set(): Value is too long(3211217 bytes) to be stored #56

Open
aidi opened this issue Dec 29, 2015 · 5 comments
Open

Warning: Yac::set(): Value is too long(3211217 bytes) to be stored #56

aidi opened this issue Dec 29, 2015 · 5 comments

Comments

@aidi
Copy link

aidi commented Dec 29, 2015

i print YAC_MAX_VALUE_RAW_LEN is 67108863 , that is large than 3211227 bytes.
here is my yac config :

yac

yac support => enabled
Version => 0.9.3-dev
Shared Memory => mmap
Serializer => php

Directive => Local Value => Master Value
yac.compress_threshold => -1 => -1
yac.debug => On => On
yac.enable => On => On
yac.enable_cli => 0 => 0
yac.keys_memory_size => 32M => 32M
yac.values_memory_size => 32M => 32M

@laruence
Copy link
Owner

set yac.compress_threshold to 1024

@aidi
Copy link
Author

aidi commented Dec 29, 2015

still got this warning .
php -i
yac.compress_threshold => 1024 => 1024

run test result:
Warning: Yac::set(): Value is too long(3209334 bytes) to be stored
YAC_MAX_VALUE_RAW_LEN:67108863
strlen:3209334
array(12) { ["memory_size"]=> int(67108864) ["slots_memory_size"]=> int(33554432) ["values_memory_size"]=> int(33554432) ["segment_size"]=> int(4194304) ["segment_num"]=> int(8) ["miss"]=> int(0) ["hits"]=> int(0) ["fails"]=> int(0) ["kicks"]=> int(0) ["recycles"]=> int(0) ["slots_size"]=> int(262144) ["slots_used"]=> int(0) }

@laruence
Copy link
Owner

hmm, okey, let me have a try later

@github-wuzhh
Copy link

我也遇到同样的问题,
Warning: Yac::set(): Value is too long(12311997 bytes) to be stored
YAC_MAX_VALUE_RAW_LEN:67108863
还没解决么,用的是PHP7 yac是直接用github上的master分支的代码

@legendhb
Copy link

legendhb commented Aug 1, 2017

问题+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants