yiisoft / yii2-redis

Yii 2 Redis extension.
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
451 stars 184 forks source link

Allowed memory size of 134217728 bytes exhausted (tried to allocate 9835256 bytes) #242

Closed ruikc closed 2 years ago

ruikc commented 2 years ago

What steps will reproduce the problem?

Allowed memory size of 134217728 bytes exhausted (tried to allocate 9835256 bytes) executeCommand($name,$params=[]),params=[] is to long;but not control the number

What's expected?

control the number to write

What do you get instead?

control the params number to write. why not use the php redis extend?

Additional info

Q A
Yii vesion 2.0.42.1
PHP version 7.2
Operating system centos
yii-bot commented 2 years ago

Thanks for posting in our issue tracker. In order to properly assist you, we need additional information:

Thanks!

This is an automated comment, triggered by adding the label status:need more info.

ruikc commented 2 years ago

When does the issue occur? image the $command is not limit the total length, big data may out the memory limit What do you see? origin_img_v2_496163e0-9a68-49e3-ac6e-4d2cf0814f5g What was the expected result? support the big data to write to redis Can you supply us with a stacktrace? (optional) Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)

samdark commented 2 years ago

We should not impose any limit since raising memory limit of PHP should allow larger strings.