[squeak-dev] Another Memory Problem

Bob Arning arning315 at comcast.net
Mon Mar 18 23:10:09 UTC 2013


If you try just allocating one really big String or ByteArray equivalent 
to those 1.5 million objects, say 600 or 700MB, what happens?

Cheers,
Bob

On 3/18/13 5:09 PM, Herbert König wrote:
> Hi,
>
> I'm no expert in crashing the VM so maybe it's me doing something stupid.
> I have a 157 MB semicolon delimited file from which I basically want 
> to create 1.5 million objects.
> Around 1.37 million I get the attached crash dump. Memory is around 530M
> Everything works fine if I only read the second half of the file.
> I tried croquet.exe -memory: 1024 without success.
>
> I read the whole file into a String and before I sprinkled the method 
> with debugging aids it looked like:
>
> initFrom: aString
>     "read the protocol file via feeding its lines into a state machine 
> each performed method returns the state for the next line"
>     |status|
>     status := #initialHeaders:.
>     aString linesDo: [:line|
>         status := self perform: status with: line].
>
> Latest Cog VM, image updated to 12333.
>
> Cheers,
>
> Herbert
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130318/12f42cfd/attachment.htm


More information about the Squeak-dev mailing list