This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Memory in Ubuntu installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Memory in Ubuntu installation" Watch "Memory in Ubuntu installation" New topic
Author

Memory in Ubuntu installation

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9399
    
    2

When I said free -m at the terminal, I get total 3030 used 1571 free 1459....What does this mean. Do I have less than 2 GB? I thought I could install a lot of stuff. I had initially 20 GB of space in the partition where I installed Ubuntu.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9399
    
    2

Any suggestion guys??
denis sorn
Ranch Hand

Joined: Apr 30, 2008
Posts: 33
free -m doesn't give data for hard disk but for RAM and swap if you have swap partition or swap file. you need df command.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11465
    
  94

Please remember that patience is a virtue. Everyone here is a volunteer, so a half day delay between you asking a question and getting a response is normal.

If you type "man free" into a shell, you will see the manual for the free command. There are also online versions (like this for example.

Looking at the man page, I can see that free displays the total amount of free and used physical and swap memory in the system, and the -m switch configures free to report in Mb. So your output indicates that you have 3 Gb of memory, and roughly half of that is in use.

Since you have not provided the complete output from when you ran the free command, it is a bit hard to determine what the 3Gb refers to, however I would assume from your "less than 2 GB" comment that you only have 2GB RAM installed. If this is the case then the 3GB of memory is probably virtual memory.

Jothi wrote:I thought I could install a lot of stuff. I had initially 20 GB of space in the partition where I installed Ubuntu.
The 20 GB is Hard Drive space, not memory. To find out how much hard drive space is still available, type "df -h" (without the quotes).

Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9399
    
    2

I have 4GB RAM on my machine. The reason why I asked this is that when I opened eclipse it gave me a warning saying that it does not have enough memory to run.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Suddenly this is an Eclipse question. What command line are you using to start Eclipse? Are you running a 32-bit or 64-bit OS? If 64-bit, are you running a 64-bit or 32-bit JVM? What JVM are you running (either the OpenJDK or one of the Sun JDKs should work)? What are the contents of your eclipse.ini file?

By the way, I have 32-bit Ubuntu 8.10 on my laptop with 4GB of memory, and Sun's JDK 6u12 and Eclipse runs just fine.


JBoss In Action
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9399
    
    2

I installed eclipse bz following a link given from a website. Im not able to find the location. I might post this here once I find it here.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9399
    
    2

http://www.javalobby.org/java/forums/t72809.html - For installing java

http://ubuntuforums.org/showthread.php?t=941461 - For installing Eclipse
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11465
    
  94

Please use real words. I cannot work out what bz means. Is it one of "barometz, batz, befriz, bejazz, berkowitz, biquartz, biz, bizz, blitz, blizz, bonnaz, bortz, brizz, bruzz, burkundaz, buzz" ?

Peter is correct - this is an Eclipse question, not a Linux question (although finding out how to look at your memory and/or hard drive space is useful). You might want to look at these topics - although old, they are relevant:
  • Increase eclipse memory
  • Eclipse memory consumption


  • Note that these talk about setting the memory from the command line. You are probably better off setting the memory in the eclipse.ini file (which is probably why Peter asked about it

    Andrew
    Joe Harry
    Ranch Hand

    Joined: Sep 26, 2006
    Posts: 9399
        
        2

    Andrew Monkhouse wrote:Please use real words. I cannot work out what bz means. Is it one of "barometz, batz, befriz, bejazz, berkowitz, biquartz, biz, bizz, blitz, blizz, bonnaz, bortz, brizz, bruzz, burkundaz, buzz" ?

    Peter is correct - this is an Eclipse question, not a Linux question (although finding out how to look at your memory and/or hard drive space is useful). You might want to look at these topics - although old, they are relevant:
  • Increase eclipse memory
  • Eclipse memory consumption


  • Note that these talk about setting the memory from the command line. You are probably better off setting the memory in the eclipse.ini file (which is probably why Peter asked about it

    Andrew


    I used a German keyboard when typing...so z got replaced with y when I typed it. Sorry!
    Peter Johnson
    author
    Bartender

    Joined: May 14, 2008
    Posts: 5836
        
        7

    Im not able to find the [install] location.


    That is one reason why I don't use the package manager to install Java stuff - I can never tell where it ends up. So I always download the zip (or tar.gz) file and unpack it into /opt. Then I always know where my stuff is. (Though I looked at the web site you posted and that site has similar steps. So where did you unpack the tar.gz???))

    Oh, the eclipse.ini file should be in the same directory as the eclipse binary. You must know where the eclipse binary is - you need it to run Eclipse! You could check your Gnome menu, it should tell you.
    Joe Harry
    Ranch Hand

    Joined: Sep 26, 2006
    Posts: 9399
        
        2

    Thanks for the information!
     
    GeeCON Prague 2014
     
    subject: Memory in Ubuntu installation