Maximun Memory you can assign

gfflores's Avatar

gfflores

19 Aug, 2011 04:38 PM

I have beaTunes 3.03 in a mac pro 12 cores with 48-64 GB ram, running OSX 10.7 Lion, How much memory i can assign and whats good for?

  1. Support Staff 1 Posted by hendrik on 20 Aug, 2011 07:35 AM

    hendrik's Avatar

    Hi,

    I guess you found the java vm settings in the Info.plist?

    beaTunes' memory consumption depends on the number of songs in your library and the number of parallel analysis tasks (editable in Preferences -> Analysis).

    The way beaTunes is currently coded (I hope I get to change this sooner rather than later), I would add roughly 100MB/parallel analysis task (that allows beaTunes to decode a song and keep the raw audio in memory). Because of garbage collection implications, It may be smart to first increase the MaxDirectMemorySize, not the general heap.

    Note, that too much memory will only slow down your system, but not speed up beaTunes. That said, there is hardly a real upper limit to memory, as beaTunes on OS X is a 64 bit process.

    Hope this helps,

    -hendrik

  2. 2 Posted by gfflores on 20 Aug, 2011 05:47 PM

    gfflores's Avatar

    Can you give an advise based in my system ?, I want to give beaTunes with the maximum memory it can takes, but not to a point that harms the process, How much memory do you think is best.
    And how do i increase the MaxDirectMemorySize, and how much do you recommend?

    And when i increased the value, after i stopped the program, i couldn't restart beaTunes, i had to reinstall beaTunes in order to launch. reinstalling beaTunes leaved the original memory settings and i didn't have any trouble launching again

  3. Support Staff 3 Posted by hendrik on 21 Aug, 2011 07:01 AM

    hendrik's Avatar

    What do you currently have parallel tasks set to (in Preferences -> Analysis)?
    (this is important for the MaxDirectMemorySize setting)

    And how many songs are in your database?
    (this is important for the -Xmx setting)

    Thanks,

    -hendrik

  4. 4 Posted by gfflores on 22 Aug, 2011 05:28 PM

    gfflores's Avatar

    Now i have 12 parallel task, I could not work with 24 parallel task, my library is 169000 songs.

  5. Support Staff 5 Posted by hendrik on 22 Aug, 2011 09:42 PM

    hendrik's Avatar

    OK. So you have a huge collection and a really fast machine. :-)

    • Install the latest version (3.0.4)
    • Make sure, beaTunes is not running
    • CTRL-Click on beaTunes3 in Finder
    • Choose "Show Package Contents"
    • in the new Finder window, go to Contents
    • Open Info.plist in TextEdit
    • Find the line <key>VMOptions</key>
    • Edit the string underneath so that it says -Xms512m -Xmx1g -ea -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=3g
    • Save the file
    • Open Info.plist.template in TextEdit
    • Find the line <key>VMOptions</key>
    • Also edit the string underneath so that it says -Xms512m -Xmx1g -ea -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=3g
    • Save the file
    • Now start beaTunes3
    • You should be able to further increase the number of parallel tasks - however, since you have 12 cores, it probably does not make sense to have more than 12 tasks in parallel (unless your cores support hyperthreading and can pretend to be more cores)

    Keep in mind that the settings will be lost which each beaTunes update.

    I'm curious to know how well this went.. Please keep me posted.

    Thanks,

    -hendrik

  6. 6 Posted by gfflores on 23 Aug, 2011 02:42 PM

    gfflores's Avatar

    Hendrik,

    Still have problems with VM, and the process crashes, I think, I can assign more memory, the program uses only 5GB, there still plenty more memory that can be used, the cpu activity gets an average from 700% 12 parallel task to 1400% 24 parallel task
    El 22/08/2011, a las 16:40, hendrik escribió:

    >

  7. Support Staff 7 Posted by hendrik on 23 Aug, 2011 03:56 PM

    hendrik's Avatar

    Hi!

    What kind if crash do you see?

    -hendrik

    Am 23.08.2011 um 16:40 schrieb "gfflores" <[email blocked]>:

    >

  8. 8 Posted by gfflores on 24 Aug, 2011 03:08 PM

    gfflores's Avatar

    Not properly a crash, i send you a screenshot

  9. Support Staff 9 Posted by hendrik on 24 Aug, 2011 08:29 PM

    hendrik's Avatar

    Hi,

    please increase the heap size to 2GB by editing that file again.

    replace -Xmx1g with -Xmx2g

    You may increase it more, if you see more OutOfMemoryErrors.

    Thanks,

    -hendrik

  10. 10 Posted by gfflores on 25 Aug, 2011 06:34 PM

    gfflores's Avatar

    I'ii ready did and worked fine,
    Thanks

  11. Support Staff 11 Posted by hendrik on 25 Aug, 2011 07:39 PM

    hendrik's Avatar

    Great! :-)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac