Hello,
I am getting an error message of "out of memory" reading a 7 gb db file. The software requires 4 gb RAm only. I am running ubuntu on win7 host and allocated 20gb RAm in virtualbox. How to fix that??
I have log attached. Thanks!
[Solved] "out of memory" with enough memory allocated.
[Solved] "out of memory" with enough memory allocated.
- Attachments
-
- ub-2015-09-25-14-44-10.zip
- (23.58 KiB) Downloaded 126 times
Last edited by KL on 26. Sep 2015, 05:10, edited 1 time in total.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: "out of memory" with enough memory allocated.
I don't know what "handling a 7gb file" means. What file are you referring to? Can you be clearer about your problem?
Start by posting a VM log file: with the VM fully shut down, right click and choose "Show Log" in the GUI, save "VBox.log" (ONLY) to a zip, and attach the zip here.
Start by posting a VM log file: with the VM fully shut down, right click and choose "Show Log" in the GUI, save "VBox.log" (ONLY) to a zip, and attach the zip here.
Re: "out of memory" with enough memory allocated.
Thank you. I attached the log file. Basically I am using a program to read a 7 gb db file. System specification from the program was 4 gb rem. And I have 20gb for the VM.
mpack wrote:I don't know what "handling a 7gb file" means. What file are you referring to? Can you be clearer about your problem?
Start by posting a VM log file: with the VM fully shut down, right click and choose "Show Log" in the GUI, save "VBox.log" (ONLY) to a zip, and attach the zip here.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: "out of memory" with enough memory allocated.
My understanding is that VirtualBox requires the allocated RAM to be in one contiguous chunk. You are allocating 19GB to the VM, on a host which only has 28GB available (i.e. not already in use). It is unlikely that such a large allocation is available in one chunk.
Try reducing the VM RAM allocation to 4GB.
The maximum size of file a VM can handle has absolutely nothing to do with how much RAM you give the VM. E.g. a 512MB XP VM can easily handle a 7GB file. The application doesn't load the entire file into memory at once - at least not if the programmer had a brain.
Try reducing the VM RAM allocation to 4GB.
The maximum size of file a VM can handle has absolutely nothing to do with how much RAM you give the VM. E.g. a 512MB XP VM can easily handle a 7GB file. The application doesn't load the entire file into memory at once - at least not if the programmer had a brain.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: "out of memory" with enough memory allocated.
I looked at the log the OP posted and it does not show an issue. If the contiguous size had been breached I would expect it to show in the VBox log as host memory low. I think the issue is inside the guest. I also noticed that the AMD processor in one place states 8 cores but in the last where it matters it says 2 physical cores. Sine they have assigned 2 cores to the guest I would look into that if it were me. As well as trying what you said of course.
You know back years ago when I actively used Windows I remember seeing these kinds of memory issues ( even on metal ). Turned out to be caused by the swap size and the registry size settings being too low.
You know back years ago when I actively used Windows I remember seeing these kinds of memory issues ( even on metal ). Turned out to be caused by the swap size and the registry size settings being too low.
Re: "out of memory" with enough memory allocated.
Hello, No idea now. But after I decreased the memory allocation for ubuntu to 7 gb, everything worked.