tag:help.beatunes.com,2009-07-24:/discussions/problems/4941-fatal-error-the-java-vm-ran-out-of-memorybeaTunes: Discussion 2011-08-21T19:40:56Ztag:help.beatunes.com,2009-07-24:Comment/6846752009-12-07T00:46:47Z2009-12-07T00:46:48ZFatal Error: The Java VM ran out of memory<div><p>I have over 120,000 tracks in my Itunes dir, when I ran the
program it runs for a while and then displays this error.</p></div>ernest pressleytag:help.beatunes.com,2009-07-24:Comment/6846752009-12-07T00:52:21Z2009-12-07T00:52:21ZFatal Error: The Java VM ran out of memory<div><p>I am currently using the lates version of both Beatunes and
Itunes....</p>
<p>--- On Sun, 12/6/09, beaTunes
<a>tender+db8732a2ceac3d206b5172d76f0326b5feb9d051f@tenderapp.com</a>
wrote:</p>
<p>From: beaTunes
<a>tender+db8732a2ceac3d206b5172d76f0326b5feb9d051f@tenderapp.com</a><br>
Subject: Fatal Error: The Java VM ran out of memory<br>
To: <a href=
"mailto:ernest1ovr0@yahoo.com">ernest1ovr0@yahoo.com</a><br>
Date: Sunday, December 6, 2009, 4:46 PM</p>
<p>Hey ernest pressley,</p>
<p>thanks for your email. It's been added to the queue and I'll be
taking a look as soon as I can.<br>
Usually, I try and respond to requests within 24 hours.</p>
<p>Based on your email, our helpdesk system believes you should
check out the following articles in our FAQ:<br>
<br>
- "I updated to iTunes 9 and now I am getting a
NullPointerException" at <a href=
"http://beatunes.tenderapp.com/faqs/troubleshooting/i-updated-to-itunes-9-and-now-i-am-getting-a-nullpointerexception">
http://beatunes.tenderapp.com/faqs/troubleshooting/i-updated-to-itu...</a><br>
</p>
<p>If this email is about a beaTunes bug, please make sure you let
me know, which versions of beaTunes and iTunes you are using. Also,
please let me know, what operating system version you are
using.</p>
<p>I'll send an email to you (at <a href=
"mailto:ernest1ovr0@yahoo.com">ernest1ovr0@yahoo.com</a>) when I
update your request.</p>
<p>Thank you!</p>
<p>tagtraum industries incorporated<br>
<a href="http://www.beaTunes.com/">http://www.beaTunes.com/</a><br>
<a href="http://www.tagtraum.com/">http://www.tagtraum.com/</a></p></div>ernest1ovr0tag:help.beatunes.com,2009-07-24:Comment/6846752009-12-07T12:04:45Z2009-12-07T12:04:45ZFatal Error: The Java VM ran out of memory<div><p>Hi Ernest,</p>
<p>thanks you for your mail. Can you please send me your logs?</p>
<p>They are in:</p>
<p>OS X: <code>~/Library/Logs/beaTunes</code><br>
Vista: <code>C:\Users\USERNAME\.beaTunes\logs</code><br>
XP: 'C:\Documents and Settings\USERNAME.beaTunes\logs</p>
<p>Please simply zip the whole folder before sending the files.</p>
<p>Thank you!</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752009-12-24T15:18:28Z2009-12-24T15:18:31ZFatal Error: The Java VM ran out of memory<div><p>I am having the same issue in OSX. Attached are my log
files.</p></div>contractcookertag:help.beatunes.com,2009-07-24:Comment/6846752009-12-24T16:18:31Z2009-12-24T16:18:31ZFatal Error: The Java VM ran out of memory<div><p>Hi Contractcooker,</p>
<p>you can probably avoid the problem, by either reducing the
number of parallel tasks to 1 (in the analysis preferences) or
reducing the accurateness slider in the BPM analysis options to
0.5-0.75 instead of 1 (this in only possible to tracks newly added
to the queue).</p>
<p>If you don't mind more memory consumption, i.e. you have lots of
RAM, there is also another way to grant beaTunes more memory.</p>
<p>Hope this helps,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752009-12-24T20:36:05Z2009-12-24T20:36:11ZFatal Error: The Java VM ran out of memory<div><p>What is the "other" way to grant beaTunes more memory? I have
4GB of ram.</p></div>contractcookertag:help.beatunes.com,2009-07-24:Comment/6846752009-12-24T23:31:19Z2009-12-24T23:31:19ZFatal Error: The Java VM ran out of memory<div><p>The "other" way is:</p>
<ul>
<li>CTRL click on the beaTunes app in Finder</li>
<li>select "Show Package Contents"</li>
<li>open the folder "Contents"</li>
<li>open the file "Info.plist.template" with TextEdit</li>
<li>find the string ${vm.memory.heap.max} and replace it with an
actual<br>
value in megabytes, e.g. "800m" (without the quotes)<br></li>
<li>start and stop beaTunes (this will rewrite the actual
"Info.plist")</li>
<li>then start using beaTunes.</li>
</ul>
<p>If you still encounter OutOfMemoryErrors, you can increase that
value<br>
again, e.g. to "1000m" - currently it's probably at 384m.</p>
<p>Hope this helps,</p>
<p>-hendrk</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752009-12-28T15:21:13Z2009-12-28T15:21:13ZFatal Error: The Java VM ran out of memory<div><p>Hi Contractcooker,</p>
<p>did this solve your issue?</p>
<p>I forgot to mention in that last post, that of course you have
to save that template before you start and stop beaTunes...</p>
<p>Thanks,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752009-12-28T17:08:40Z2009-12-28T17:08:40ZFatal Error: The Java VM ran out of memory<div><p>Hello Hendrik<br>
I haven't had a chance to test it yet but on my next analysis I
will test it<br>
and let you know how it goes.</p>
<p>thank you for your support!<br>
TB</p></div>Thomas Barrontag:help.beatunes.com,2009-07-24:Comment/6846752009-12-28T18:12:30Z2009-12-28T18:12:30ZFatal Error: The Java VM ran out of memory<div><p>Thank, Thomas.</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752010-01-07T17:10:50Z2010-01-07T17:10:55ZFatal Error: The Java VM ran out of memory<div><p>Henrik, i had the same issue and i've made the script update and
its now working fine.</p>
<p>Thanks, Steve</p></div>Steve Jalapenotag:help.beatunes.com,2009-07-24:Comment/6846752010-01-07T17:21:06Z2010-01-07T17:21:06ZFatal Error: The Java VM ran out of memory<div><p>Cool.</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752011-06-05T22:08:28Z2011-06-05T22:08:28ZFatal Error: The Java VM ran out of memory<div><p>Hello, I am a new MAC user getting the same error. I am also
older than dirt and expect things to work when I click on them. Of
the solutions above, which should I try first. If I can't figure it
out, am I up a creek?</p></div>Kellytag:help.beatunes.com,2009-07-24:Comment/6846752011-06-06T07:32:36Z2011-06-06T07:32:36ZFatal Error: The Java VM ran out of memory<div><p>Hi Kelly,</p>
<p>if you've seen that error only once, don't do anything.<br>
If it comes up more than once, please let me know, how many songs
you have in your collection and when the message came up? Was it
during analysis?</p>
<p>Thanks,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752011-06-20T00:06:42Z2011-06-20T00:06:43ZFatal Error: The Java VM ran out of memory<div><p>@ hendrik: thanks for the tip - so far it's working with success
on 80,000 song analysis :-)</p>
<p>I wanted to allocate up to 8GB to Beatunes, (running 8 x
processes) after making a back up copy of the Info.plist.template I
did a little research on java vm's to get the edit right.<br>
The whole line to edit is: (just to be clear for n00bs like
myself:-)<br>
"-Xms${vm.memory.heap.min} -Xmx${vm.memory.heap.max} -ea -" Which
looks like:<br>
"-Xms${vm.memory.heap.min} -Xmx8000m -ea -" for allowing (in my
case) 8Gb. I'm using a 4 core 2.8 Mac Pro 5,1 with 24GB ram and
Beatunes is using 7.8GB, looking up data online. Thanks!</p></div>bigbadbenny67tag:help.beatunes.com,2009-07-24:Comment/6846752011-06-22T10:25:48Z2011-06-22T10:25:48ZFatal Error: The Java VM ran out of memory<div><p>Hey,</p>
<p>just FYI - you probably don't need <em>that</em> much memory. On
the other hand - if you have it...</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752011-06-22T13:08:58Z2011-06-22T13:08:58ZFatal Error: The Java VM ran out of memory<div><p>Hi there!<br>
Sure thing - in fact I upped it to 12GB just to see what
happens!<br>
I'm smashing my 1TB iTunes library with Beatunes overnight,
unattended<br>
- so I'm comfortable dedicating most system resources if required.
It's using all the memory just for the "looking up online
resources" sequence.<br>
Back to 3GB for 8x analysis processing.<br>
Alas the Mac crashed (not Beatunes related) 1/3rd into analysis,
I<br>
moved the big DB file and am starting the whole process again. (I
kept<br>
the 6GB DB file but I'm assuming its useless?)<br>
Other than cloning the whole system, is there a way to backup and
or<br>
restore this DB file? - if it can be damaged by a system crash,
I'd<br>
like to be able to restore it without re-analysing the entire
library.<br>
Also I saw the support forum post about tweaking Java prefs,I
changed<br>
mine to discrete processes and moved the temp to my fast scratch
disk.<br>
Can you recommend any other Beatunes tweaks for a reasonably
balanced<br>
performance Mac Pro? To summarise: 4 core/ 8 thread, 6G SSD for<br>
boot/home, 24GB ram, 550Mbs raid0 scratch. RAMdisk?<br>
Anyhow, I'll summarize my progress (sans the bitching:-) with a
follow<br>
up post, thanks again.<br>
PS<br>
Another Q I have is "is there a way to filter out files that
Beatunes<br>
doesnt like?"<br>
There are a few files with obscure extensions that cause a
dialogue<br>
box to pop up, possibly pausing analysis, but I couldnt "see" them
in<br>
the "kind" column. Cheers, Ben</p></div>bigbadbenny67tag:help.beatunes.com,2009-07-24:Comment/6846752011-07-03T00:23:47Z2011-07-03T00:23:47ZFatal Error: The Java VM ran out of memory<div><p>Hello Hendrik<br>
I restarted the analysis, with various playlists by kind, and
started<br>
by analyzing the .mp3's.<br>
The process was 99% done and I had another crash which led to
hanging<br>
on splash screen on restart. The problem was related to a podcast
.mp3<br>
file.<br>
I renamed the database file and started again with podcasts
disallowed<br>
in preferences.</p>
<p>Multiple questions below around two themes: prevention and
recovery.</p>
<p>My question is: can I use my Time Machine backup to restore that
database file?<br>
How to check that my 2 older possibly corrupt databases are in fact
useless?<br>
Is there a way to check my library for any incompatible files prior
to<br>
running Beatunes?<br>
Are there any strategies for recovering from these apparently<br>
unavoidable crashes due to incompatible files?<br>
Is it possible to have multiple databases, e.g. for different
file<br>
types, categories etc?</p>
<p>I'd hate to have to start again, again, again...<br>
Or am I missing something fundamental?<br>
I'll send you the logs next week if req'd.</p>
<p>My MacPro has the separated Home folder from Boot (system and
apps)<br>
schema so another strategy might be to work from cloned images of
my<br>
Home folder, with a new clone made before each stage of the
process.<br>
Assuming I get through mp3's ( -podcasts) successfully, that's
exactly<br>
what I'll do...</p>
<p>Thanks, Ben</p></div>bigbadbenny67tag:help.beatunes.com,2009-07-24:Comment/6846752011-07-04T15:46:35Z2011-07-04T15:46:35ZFatal Error: The Java VM ran out of memory<div><p>Hi Ben,</p>
<p>first of all:</p>
<p>Disallowing file types in the analysis preferences only has an
effect when analyzing <em>all</em> or <em>new</em> tracks and only
if it is checked before you start the analysis.</p>
<p>Regarding restoring:</p>
<p>The beaTunes database file is like any other file. You can
certainly try to use Time Machine to restore it. However, a copy of
the file when beaTunes was <em>not</em> running is probably the
smartest bet.</p>
<p>There is no protection from these seemingly unavoidable crashes.
But I love to hear about them and if you send me the offending
files along with your logs (<a href=
"http://help.beatunes.com/kb/troubleshooting/where-are-the-beatunes-logs">http://help.beatunes.com/kb/troubleshooting/where-are-the-beatunes-...</a>)
I'd be happy to try to reproduce the issue in order to find a fix.
Logs only make sense, when harvested right after the crash and
before you run beaTunes again.</p>
<p>beaTunes 3 supports two different kinds of libraries:</p>
<ul>
<li>directory based (this has nothing to do with iTunes)</li>
<li>iTunes library based (one database for each iTunes
library)</li>
</ul>
<p>You can create new libraries in the beaTunes General
Preferences.<br>
New iTunes libraries can be created following the steps described
in <a href=
"http://support.apple.com/kb/HT1589">http://support.apple.com/kb/HT1589</a></p>
<p>Hope this helps,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752011-07-05T11:10:49Z2011-07-05T11:10:49ZFatal Error: The Java VM ran out of memory<div><p>That sure does!<br>
Yes - I'd like to strategise a safe approach to beaTuning large
music<br>
collections.<br>
Here's a start:</p>
<p>Step 1: In beaTunes or iTunes break your collection down
into<br>
playlists or libraries, based on file type, genre and so on, so
that<br>
organizing your library can be done in manageable chunks. Aim for
no<br>
more than e.g: 5000 songs per playlist (approx 6 hours on dual<br>
cores/processes).</p>
<p>Step 2: Find your beaTunes database file located here:<br>
/Users/BBB/Library/Application Support/beaTunes and use e.g: rsync
to make a backup.</p>
<p>Step 3: Start analyzing your music, playlist by playlist,
beginning<br>
with these suggested minimal analysis settings - exclude
everything<br>
but music - don't use online resources etc.</p>
<p>Should you experience a beaTunes crash or hang, after force
quitting,<br>
<em>do not</em> unlock database option on app restart and review
these pages at beaTunes support for java vm and java preferences
etc system<br>
tweaks. Unlocking the database file may be considered a last resort
in<br>
restarting a stalled analysis.</p>
<p>In the event that beaTunes cannot be restarted, please zip your
log<br>
files and send to beaTunes support (instructions here) restore
your<br>
last good database file, repair permissions, reboot and restart<br>
beaTunes being ready to take a note of any beaTunes
notifications<br>
about corrupt files that may need deletion/attention before
resuming<br>
analysis.</p>
<p>Let me know if there's any major inaccuracies stated :-)</p>
<p>I'll research the best method to backup and restore the database
file.<br>
I'd like some advice on the best way to begin analysis in a quick,
minimal way.<br>
There are so many choices - what are the crucial settings to get
fast<br>
accurate useful results?</p>
<p>Thanks, Ben</p></div>bigbadbenny67tag:help.beatunes.com,2009-07-24:Comment/6846752011-07-05T11:43:19Z2011-07-05T11:43:42ZFatal Error: The Java VM ran out of memory<div><p>Hi Ben,</p>
<p>unlocking the database is actually not a bad thing - most of the
time it's simply not necessary and can be a waste of time.</p>
<p>Analysis time depends very heavily on what analysis tasks you
want beaTunes to execute. You estimate may therefore be off by a
lot.</p>
<p>Regarding Analysis Options settings:</p>
<p>"use online resources": if checked beaTunes first looks up
values in the online database. If it finds the corresponding
values, it does not analyze them. This is a potential time saver.
However, you can't control how the values were computed. The
database delivers values that were most often submitted or entered
manually. Currently (July 5th 2011), key values from the database
are most likely computed with the old algorithm. This should have
changed in a couple of months.</p>
<p>Detect silence: Turn this off - you probably don't want it and
it takes a lot of time to compute.</p>
<p>Replay gain: If you are not sure what this is for, turn it off.
It takes a long time to compute and uses a lot of resources.</p>
<p>BPM: Use the Rayshoot alg with precision set to a
<em>middle</em> position and 70-140 BPM range pre-selected.</p>
<p>Color: Do <em>not</em> embed the color. Retrieving color from
online resources actually makes sense.</p>
<p>MusicIP/AmpliFIND: Turn this off, unless you know you actually
need it. <em>Do not replace values!</em> Replacing can cause more
of a mess than you had before. Note that this has nothing to do
with the other "use online resources" check boxes.</p>
<p>Language: Turn this on. It hardly uses any resources.</p>
<p>Lyrics: Depending on your connection speed, this may cause more
or less time consumption. It does not use much computing resources.
Note that this has nothing to do with the other "use online
resources" check boxes.</p>
<p>Other Preferences:</p>
<p>In the general preferences, there is a checkbox for embedding
non-iTunes fields (only available for iTunes libraries). You might
want to turn this on, as it saves values like color, key, language
etc. in the files themselves (if possible). This allows using those
values from other apps. It also minimizes damages, should the
beaTunes database become corrupted, as the values can be read in
again (and will be read in again) when you are re-building your
beaTunes database after deleting the database file.</p>
<p>Cheers,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/6846752011-07-05T14:21:49Z2011-07-05T14:21:49ZFatal Error: The Java VM ran out of memory<div><p>OK AWESOME<br>
Thanks<br>
Looks really very close to my settings already</p>
<p>I'll get back to you with an update regarding any success (if
req'd)<br>
with backup/restore.<br>
Thanks again. Ben</p></div>bigbadbenny67tag:help.beatunes.com,2009-07-24:Comment/6846752011-08-21T18:14:13Z2011-08-21T18:14:14ZFatal Error: The Java VM ran out of memory<div><p>Same error message here.</p>
<p>Logfiles attached, also screenshots of error and memory usage at
the time of the error (I had left it unattended, so this might not
be entirely accurate!).</p>
<p>I'll try working through some of the suggestions above when I
have a few moments.</p></div>Kim Plowrighttag:help.beatunes.com,2009-07-24:Comment/6846752011-08-21T19:40:54Z2011-08-21T19:40:54ZFatal Error: The Java VM ran out of memory<div><p>Kim,</p>
<p>please simply reduce the number of parallel tasks beaTunes is
executing by one.<br>
You can do so in the beaTunes preferences, i.e. the analysis
pane.</p>
<p>-hendrik</p></div>hendrik