-
Ramdisk (re)size/adjust size
I have some Java development stuff on an external SCSI drive and actually no files in the /home/knoppix. From time to time Eclipse crashed, same for Konqueror. With 256MB RAM, Knoppix takes a full 199MB for ramdisk. I want to size this down as much as possible because it seems running out of RAM is the reason for the apps crashing?
I have checked the forum and google but the only cheatcode I found was "mem" which does NOT what I want. I do not want to set how much RAM is visible to Linux but how much of the total is taken up by that ramdisk.
Maybe someone can tell me how to do that or point me to a useful link!
-
Senior Member
registered user
I don't think you can do it out of the box. There are two options that I can think of :
1. extract boot.img and miniroot.gz from it then change linuxrc, that is where how large the ram disk is specified.
2. setup swap space, assuming you have a HD.
-
Senior Member
registered user
Re: Ramdisk (re)size/adjust size
--The ramdisk should allocate memory dynamically depending on how much data is stored on it; the size reported by 'df' is the *maximum* size. There should be no need to resize it.
--Try starting ' konqueror ' and eclipse manually from a terminal window, and see what error messages they give when a crash happens. It's not at all uncommon for browsers to crash, sometimes it just happens.
![Quote](images/misc/quote_icon.png)
Originally Posted by
hnt
I have some Java development stuff on an external SCSI drive and actually no files in the /home/knoppix. From time to time Eclipse crashed, same for Konqueror. With 256MB RAM, Knoppix takes a full 199MB for ramdisk. I want to size this down as much as possible because it seems running out of RAM is the reason for the apps crashing?
I have checked the forum and google but the only cheatcode I found was "mem" which does NOT what I want. I do not want to set how much RAM is visible to Linux but how much of the total is taken up by that ramdisk.
Maybe someone can tell me how to do that or point me to a useful link!
-
JVM terminated
Thanks for the input! Ill try setting up some swap - could have really thought of that one ![Wink](images/smilies/icon_wink.gif)
I tried to get some error-msg from Eclipse though the error came from the JVM itself (dialog popped up):
"JVM terminated. Exit code=-1 /usr/bin/java -cp /mnt/sdc2/java/eclipse/./startup.jar org.eclipse.core.launcher.Main -os linux -ws gtk -arch x86 -showsplash [...] -showsplash 600"
At that time, eclipse was still "running" in the console.
Once you closed it, eclipse was gone too without any message.
I let free check mem every 3 seconds, this is the worst output it gave me - that was shortly before JVM hang up.
Code:
total used free shared buffers cached
Mem: 250 248 2 0 5 45
-/+ buffers/cache: 197 53
Swap: 0 0 0
Ill just try with some swap now...
-
Senior Member
registered user
Re: JVM terminated
Helpful tip - if you are using kDE, it's a resource hog. Try using icewm or other more lightweight WM to save on memory.
![Quote](images/misc/quote_icon.png)
Originally Posted by
hnt
Thanks for the input! Ill try setting up some swap - could have really thought of that one
![Wink](images/smilies/icon_wink.gif)
I tried to get some error-msg from Eclipse though the error came from the JVM itself (dialog popped up):
"JVM terminated. Exit code=-1 /usr/bin/java -cp /mnt/sdc2/java/eclipse/./startup.jar org.eclipse.core.launcher.Main -os linux -ws gtk -arch x86 -showsplash [...] -showsplash 600"
At that time, eclipse was still "running" in the console.
Once you closed it, eclipse was gone too without any message.
I let free check mem every 3 seconds, this is the worst output it gave me - that was shortly before JVM hang up.
Code:
total used free shared buffers cached
Mem: 250 248 2 0 5 45
-/+ buffers/cache: 197 53
Swap: 0 0 0
Ill just try with some swap now...
Similar Threads
-
By jesselong in forum Customising & Remastering
Replies: 5
Last Post: 05-26-2004, 01:24 PM
-
By AP in forum Customising & Remastering
Replies: 0
Last Post: 04-11-2004, 03:36 AM
-
By bluegreenone in forum General Support
Replies: 4
Last Post: 10-14-2003, 11:16 AM
-
By image in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 09-23-2003, 02:19 AM
-
By CHINAMAN in forum General Support
Replies: 2
Last Post: 09-22-2003, 03:05 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor picture](/store/img/g/jKAAAOSwdVNlLmSw/s-l225/Intel-Core-i7-14700K-14th-Gen-20-Core-8P-12E-LGA-1.jpg)
Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor
$355.98
![Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc... picture](/store/img/g/YFUAAOSwTDplMDa3/s-l225/Intel-Core-i9-14900K-14th-Gen-24-Core-32-Thread-4-.jpg)
Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...
$533.99
![10th GEN INTEL Core i5-10400F 2.9GHz Socket-1200 Desktop CPU SRH3D Processor picture](/store/img/g/dPgAAOSwrWxmeHzS/s-l225/10th-GEN-INTEL-Core-i5-10400F-2-9GHz-Socket-1200-D.jpg)
10th GEN INTEL Core i5-10400F 2.9GHz Socket-1200 Desktop CPU SRH3D Processor
$69.99
![Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc... picture](/store/img/g/0eYAAOSwcHZlMDWu/s-l225/Intel-Core-i7-14700K-14th-Gen-20-Core-28-Thread-4-.jpg)
Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc...
$444.99
![Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc... picture](/store/img/g/2f8AAOSw7ltlMDW2/s-l225/Intel-Core-i5-14600K-14th-Gen-14-Core-20-Thread-4-.jpg)
Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...
$305.99
![SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor picture](/store/img/g/fEMAAOSwy1JmPnWm/s-l225/SR1XP-Intel-Xeon-E5-2680-v3-12-Core-30MB-2-5GHz-LG.jpg)
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor
$4.50
![Intel Xeon E5-2695 V4 @2.10GHz SR2J1 Socket LGA2011 18-Core Server CPU Processor picture](/store/img/g/PT8AAOSwmlRmekUD/s-l225/Intel-Xeon-E5-2695-V4-2-10GHz-SR2J1-Socket-LGA2011.jpg)
Intel Xeon E5-2695 V4 @2.10GHz SR2J1 Socket LGA2011 18-Core Server CPU Processor
$40.40
![Intel Core i5-12400F - 6-Core 2.5GHz 12th Gen Alder Lake LGA 1700 65W CPU picture](/store/img/g/wucAAOSwFLxh1X-c/s-l225/Intel-Core-i5-12400F-6-Core-2-5GHz-12th-Gen-Alder-.jpg)
Intel Core i5-12400F - 6-Core 2.5GHz 12th Gen Alder Lake LGA 1700 65W CPU
$109.94
![Intel Xeon E5-2697 v4 2.3GHz 18-Core Processor CPU LGA2011 SR2JV picture](/store/img/g/9jsAAOSwMLFk75UZ/s-l225/Intel-Xeon-E5-2697-v4-2-3GHz-18-Core-Processor-CPU.jpg)
Intel Xeon E5-2697 v4 2.3GHz 18-Core Processor CPU LGA2011 SR2JV
$49.99
![Intel Core i7-4790K SR219 4.00GHZ 4Th Gen Used Desktop Processor CPU FCLGA1150 picture](/store/img/g/klEAAOSwVO1mdf-P/s-l225/Intel-Core-i7-4790K-SR219-4-00GHZ-4Th-Gen-Used-Des.jpg)
Intel Core i7-4790K SR219 4.00GHZ 4Th Gen Used Desktop Processor CPU FCLGA1150
$64.99