Marshal.dump/load limitations on size?

W

Wes Gamble

All,

Does anyone know if there are any implicit limitations to the size of an
object that Marshal.dump/load can handle?

I have a biiig object that I'm trying to dump and load and it seems to
be failing and I just want to know if I shouldn't even expect to be able
to dump/load an object bigger than X.

Thanks,
Wes
 
K

khaines

Does anyone know if there are any implicit limitations to the size of an
object that Marshal.dump/load can handle?

I have a biiig object that I'm trying to dump and load and it seems to
be failing and I just want to know if I shouldn't even expect to be able
to dump/load an object bigger than X.

RAM. That's your only size limitation.


Kirk Haines
 
W

Wes Gamble

RAM. That's your only size limitation.

Any chance that memcached (which uses Marshal) imposes any sort of size
limitation?

Wes
 
E

Ezra Zygmuntowicz

Any chance that memcached (which uses Marshal) imposes any sort of
size
limitation?

Wes


Memecahed only imposes the size limitation you set in its config
file. /etc/conf.d/memcached on gentoo is where you can set the max
memory for the memcached daemon. If you are hitting that limit then
it won't go any further until you set it to a higher threshold and
restart memcached.

Cheers-
-- Ezra Zygmuntowicz
-- Lead Rails Evangelist
-- (e-mail address removed)
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)
 
W

Wes Gamble

One last piece of info:

memcached does impose a limit of 1MB (actually just under 1MB) on the
size of any one item that is stored.

For my project, I've modified memcache-client to handle larger objects
by breaking them into pieces and reconstituting them within the API.

Wes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,236
Messages
2,571,184
Members
47,820
Latest member
HortenseKo

Latest Threads

Top