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

Nullpointer while inserting cache values above 6mb #333

Closed
a2l007 opened this issue Jan 30, 2018 · 10 comments
Closed

Nullpointer while inserting cache values above 6mb #333

a2l007 opened this issue Jan 30, 2018 · 10 comments

Comments

@a2l007
Copy link

a2l007 commented Jan 30, 2018

I've configured memcached 1.4.22 and could see that every attempt to insert data sized more than ~6MB is giving me the following error:

2018-01-30 22:17:00.645 INFO net.spy.memcached.MemcachedConnection:  Reconnecting due to exception on {QA sa=/1.2.3.4.5:11211, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=Cmd: 1 O
paque: 505 Key: app:cceabea9aaeb58418912fb56762dc0c7c927e150:cceabea9aaeb58418912fb56762dc0c7c927e150 Cas: 0 Exp: 2592000 Flags: 2050 Data Length: 1902195, toWrite=0, interested=4}
java.lang.NullPointerException
        at net.spy.memcached.protocol.TCPMemcachedNodeImpl.fillWriteBuffer(TCPMemcachedNodeImpl.java:206)

The size value configured for memcached is 10000
Any comments on what could be the issue here?

@dormando
Copy link
Member

That looks like an issue with spymemcached itself, not the server? Have you tried asking them?

What were the actual startup arguments to memcached?

@a2l007
Copy link
Author

a2l007 commented Jan 31, 2018

Turns out the issue was because the maxSize was configured to 1MB but the cache values were greater than that. Got fixed once the maxSize was changed.

@rohantandon96
Copy link

Btw, I received similar issue to @a2l007 but simply increasing the maxSize didnt work for me. I am inserting data of size ~12MB into memcached.

Issue: monix/shade#64

@dormando
Copy link
Member

dormando commented May 8, 2020

@rohantandon96 please don't necro random old issues :(

It looks like you're setting the maxSize for spymemcached but probably not increasing the max item size for memcached itself, so the server would reject you.

@rohantandon96
Copy link

@dormando sorry about that.
I did increase the max item size on memcached itself and not for spyMemcached.

@dormando
Copy link
Member

dormando commented May 8, 2020

@anthonyryan1 you didn't show anything about what you changed with memcached, what version it's running/etc.

@rohantandon96
Copy link

rohantandon96 commented May 8, 2020

Running memcached in AWS, so increased the max_item_size as below:
Screen Shot 2020-05-08 at 5 35 49 PM

Running memcached version: 1.5.16

@dormando
Copy link
Member

dormando commented May 8, 2020

Ah, we can't really support the AWS version. You could try opening a raw connection to the instance and SET a value of the size you want and see what happens. it's trivial to generate a raw text protocol request.

If you get an error it's something you'll have to take up with AWS, sorry.

@rohantandon96
Copy link

rohantandon96 commented May 8, 2020

ah thanks for that @dormando. What version of memcached do you support? Maybe I can bump up/down the version based on your support version and then try.

@dormando
Copy link
Member

dormando commented May 8, 2020

None of them. We can give some support but if you're using their tooling (and it's unclear if they've made modifications to the daemon like they have in the past) you're stuck with them. I support the actual project; the latest versions. If something's wrong you can't exactly upgrade to deal with it :)

What we can do: if you supply output of stats and stats settings and do what I suggested by writing a SET command to an instance and seeing what happens, we can troubleshoot a little bit. AWS's control panel means nothing to me though.

Also this is still the wrong venue; please open a new issue or try the mailing list/discord for support.

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

3 participants