Is there a limit to the number of songs?

Need help? Post your questions here.

Moderator: moderators

Is there a limit to the number of songs?

Postby Guest » Fri Mar 24, 2006 4:40 pm

I mount my mp3 directory from my desktop (XP) to my server (linux) via SMB.

Subsonic sees the directory OK but the number of songs and totals are wrong..

168 artists
413 albums
4,563 songs
Total 35.39 GB (~ 549 hours)

The actual number of tracks is wrong (9925) as is the size (70.9Gb)..

Is there a limit on the number of tracks or suchlike?
Guest
 

Postby sindre_mehus » Fri Mar 24, 2006 7:34 pm

Hi,
There is no such limit.

What music format(s) are you using? Note that you can configure which formats Subsonic should recognize. Default formats are mp3, ogg , aac, wav and wma.

You could also try to rescan the music library. (Settings > Update search index now).

Hope this helps,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby Guest » Fri Mar 24, 2006 9:50 pm

The music files are mostly mp3 (some .ogg but the vast majority are mp3)

I tried a rescan - same result :-(

I did the following:

cd /mnt/mp3
/usr/bin/find /mnt/mp3 -follow -iname "*.ogg" > ~/pl.out
/usr/bin/find /mnt/mp3 -follow -iname "*.mp3" >> ~/pl.out
cat ~/pl.out | sort > ~/playlist.m3u

to create a playlist which I then tried to load into Subsonic - it gets about 1/2 way through loading it and then seems to give up and won't show me any more..

The strange thing is that if I look at the album list on the left they are all there!

I'm wondering if it is hitting a memory limit somewhere (java? tomcat) and giving up at that point.
Guest
 

Postby sindre_mehus » Sat Mar 25, 2006 6:20 am

Do you have any symlinks somewhere inside /mnt/mp3? Please note that symlinks currently are not supported (see http://forum.subsonic.org/forum/viewtopic.php?t=28).

Have you looked at the Subsonic log file? TOMCAT_HOME/logs/subsonic.log.

Rgds, Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby Guest » Sat Mar 25, 2006 11:40 am

No symlinks - the mp3's are actually on a Windows XP box that the linux box mounts via smbmount

Logs are as follows:

[2006-03-24 22:08:04,192] INFO service.VersionService - Resolved latest Subsonic version to: 2.6
[2006-03-24 22:08:05,550] DEBUG service.SearchService - Found 10 random files in 903 ms.
[2006-03-24 22:08:14,528] INFO service.SearchService - Starting to create search index.
[2006-03-25 02:00:00,753] INFO service.SearchService - Starting to create search index.
[2006-03-25 11:31:35,726] DEBUG service.SearchService - Found 10 random files in 374 ms.
Guest
 

Postby sindre_mehus » Sat Mar 25, 2006 11:57 am

I think you might be right about hitting a memory limit. Are you running any other web applications in your Tomcat server? (I have a 140GB music collection and haven't seen this problem).

Here are instructions for changing how much memory Tomcat is allowed to use: http://tomcat.apache.org/faq/memory.html

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby Guest » Sat Mar 25, 2006 9:32 pm

Yup - it was memory..

Setting JAVA_OPTS='-Xmx1024m -Xms512m' did the trick.. now I get all the songs showing up..

405 artists
924 albums
9,939 songs
Total 77.43 GB (~ 1,202 hours)

and in the log:

[3/25/06 1:29:35 PM GMT] INFO SearchService - Created search index with 11121 entries.

Thanks for the help!
Guest
 

Postby PeeGee » Mon Oct 16, 2006 10:00 pm

Hi guys,

I have the exact same problem, but mine is a windows installation. How do I solve this problem, which file should i edit?

Thanks / PG
PeeGee
 
Posts: 23
Joined: Mon Oct 16, 2006 9:58 pm
Location: Stockholm

Postby sindre_mehus » Tue Oct 17, 2006 6:33 am

Hi,

First of all, I recommend you upgrade to 2.9.beta1 if you haven't done so already. It has some optimizations to reduce memory usage.

The file to edit is TOMCAT_HOME\bin\catalina.bat. I'm away from my Subsonic server right now, so I can't give you are more specific description.

By the way, how large is your music collection?

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby PeeGee » Tue Oct 17, 2006 7:11 am

Hi Sindre,

Thats the weird thing, I can't find any catalina.bat. I have installed the following versions:

Java: 5.09
Tomcat: 5.5.20
Subsonic: 2.9.beta1 (build 363)

The log says:
[2006-10-17 03:01:09,167] INFO SearchService - Starting to create search index.
[2006-10-17 03:01:29,817] INFO SearchService - Created search index with 1000 entries.
[2006-10-17 03:01:52,358] INFO SearchService - Created search index with 2000 entries.
[2006-10-17 03:02:16,524] INFO SearchService - Created search index with 3000 entries.
[2006-10-17 03:02:40,644] INFO SearchService - Created search index with 4000 entries.
[2006-10-17 03:03:08,578] INFO SearchService - Created search index with 5000 entries.
[2006-10-17 03:03:29,446] INFO SearchService - Created search index with 6000 entries.
[2006-10-17 03:03:53,394] INFO SearchService - Created search index with 7000 entries.
[2006-10-17 03:04:20,187] INFO SearchService - Created search index with 8000 entries.
[2006-10-17 03:04:22,266] WARN Mp3Parser - Failed to parse MP3 header for E:\FTP\-=Music=-\-=Albums=-\-=Unsorted Albums=-\Kate Bush discography - 11 albums - 192+ kbit\1990 - This Woman's Work, Vol. 1\Kate Bush - This Woman's Work, Vol. 1 - 12 - The Handsome Cabin Boy.mp3
java.lang.IndexOutOfBoundsException: 0
at java.nio.DirectByteBuffer.get(Unknown Source)
at org.jaudiotagger.audio.mp3.MPEGFrameHeader.isMPEGFrame(MPEGFrameHeader.java:865)
at org.jaudiotagger.audio.mp3.MP3AudioHeader.seek(MP3AudioHeader.java:129)
at org.jaudiotagger.audio.mp3.MP3AudioHeader.<init>(MP3AudioHeader.java:82)
at net.sourceforge.subsonic.domain.Mp3Parser.parseMp3Header(Mp3Parser.java:200)
at net.sourceforge.subsonic.domain.Mp3Parser.getRawMetaData(Mp3Parser.java:126)
at net.sourceforge.subsonic.domain.Mp3Parser.getMetaData(Mp3Parser.java:26)
at net.sourceforge.subsonic.domain.MusicFile.getMetaData(MusicFile.java:186)
at net.sourceforge.subsonic.service.SearchService$Line.forFile(SearchService.java:511)
at net.sourceforge.subsonic.service.SearchService$Scanner.visit(SearchService.java:571)
at net.sourceforge.subsonic.domain.MusicFile.accept(MusicFile.java:281)
at net.sourceforge.subsonic.domain.MusicFile.accept(MusicFile.java:288)
at net.sourceforge.subsonic.domain.MusicFile.accept(MusicFile.java:288)
at net.sourceforge.subsonic.domain.MusicFile.accept(MusicFile.java:288)
at net.sourceforge.subsonic.service.SearchService$1.run(SearchService.java:80)

[2006-10-17 03:04:39,758] INFO SearchService - Created search index with 9000 entries.

So it seems to stop after 9' - 10' entries, and the statusinfo in Subsonic says:

962 artists
927 albums
1,781 songs
8.58 GB (~ 133 hours)

My musiccollection is 106 GB!

Thanks / Patrik
PeeGee
 
Posts: 23
Joined: Mon Oct 16, 2006 9:58 pm
Location: Stockholm

Postby PeeGee » Tue Oct 17, 2006 8:57 am

After googling the net ( http://issues.apache.org/bugzilla/show_bug.cgi?id=36289 ) I found that the windows installer of tomcat doesn't include the catalina.bat-file. I added all the binfiles from the zipfile instead and now it's starting to look like something, I now get:

924 artists
716 albums
8,954 songs
49.33 GB (~ 766 hours)

But there still a lot missing. I also added the string, mentioned erlier in this thread, into catalina.bat but it doesn't change anything.

The log says:

[2006-10-17 10:41:01,400] INFO DaoHelper - Checking database schema.
[2006-10-17 10:41:15,125] INFO DaoHelper - Done checking database schema.
[2006-10-17 10:41:18,423] INFO SearchService - Automatic index creation scheduled to run every 1 day(s), starting at Wed Oct 18 03:00:00 CEST 2006
[2006-10-17 10:44:32,709] INFO VersionService - Resolved latest Subsonic final version to: 2.8
[2006-10-17 10:44:32,709] INFO VersionService - Resolved latest Subsonic beta version to: 2.9.beta1
[2006-10-17 10:44:32,709] INFO VersionService - Resolved local Subsonic version to: 2.9.beta1
[2006-10-17 10:47:09,261] INFO SearchService - Starting to create search index.
[2006-10-17 10:47:43,057] INFO SearchService - Created search index with 1000 entries.
[2006-10-17 10:48:14,930] INFO SearchService - Created search index with 2000 entries.
[2006-10-17 10:48:43,989] INFO SearchService - Created search index with 3000 entries.
[2006-10-17 10:49:11,204] INFO SearchService - Created search index with 4000 entries.
[2006-10-17 10:49:29,977] INFO SearchService - Created search index with 5000 entries.
[2006-10-17 10:49:40,107] INFO SearchService - Created search index with 6000 entries.
[2006-10-17 10:49:52,096] INFO SearchService - Created search index with 7000 entries.
[2006-10-17 10:50:03,414] INFO SearchService - Created search index with 8000 entries.
[2006-10-17 10:50:15,685] INFO SearchService - Created search index with 9000 entries.

It just won't fix more than 9' entries, any more ideas?

Thanks / Patrik
PeeGee
 
Posts: 23
Joined: Mon Oct 16, 2006 9:58 pm
Location: Stockholm

Postby sindre_mehus » Tue Oct 17, 2006 9:16 am

Are you still running Tomcat as a Windows service, or are you starting it with startup.bat? I'm not sure it's a good idea to mix the two different install modes, you should use one or the other.

I found this info about changing memory settings for the Tomcat service:
http://marc.theaimsgroup.com/?l=tomcat- ... 910569&w=2

Haven't tested it yet.

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby PeeGee » Tue Oct 17, 2006 9:19 am

Hi Sindre,

I'm starting it with the Tomcat monitor in the windows systemtray, not the catalina.bat. Do I have to start it with the catalina.bat file?

/ Patrik

PS. One thing I notice after adding catalina.bat and edit it, is that it takes ages to log on to the GUI. DS.
PeeGee
 
Posts: 23
Joined: Mon Oct 16, 2006 9:58 pm
Location: Stockholm

Postby sindre_mehus » Tue Oct 17, 2006 6:09 pm

Ok, I've had a look now, and it's actually quite straight-forward.

First, rollback to how things were originally. Never mind about the catalina.bat etc.
Open the Windows Start menu, select All Programs > Apache Tomcat 5.5 > Configure Tomcat (or open it from the Tomcat tray icon).
Select the "Java" tab, and enter a value in "Maximum memory pool". By default, Tomcat uses a limit of 64 MB. You may wanna set it to 96 or 128.
Select the "General" tab, and restart the Tomcat service.

Hope this helps,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby PeeGee » Tue Oct 17, 2006 10:36 pm

Hi Sindre,

Thanks for looking in to this problem.

I've tried the stuff you mentioned above, I even tried upp to 256 mb but exactly the same result. The log says:

[2006-10-18 00:24:40,256] INFO SearchService - Starting to create search index.
[2006-10-18 00:24:44,412] INFO SearchService - Created search index with 1000 entries.
[2006-10-18 00:24:47,177] INFO SearchService - Created search index with 2000 entries.
[2006-10-18 00:24:49,864] INFO SearchService - Created search index with 3000 entries.
[2006-10-18 00:24:52,785] INFO SearchService - Created search index with 4000 entries.
[2006-10-18 00:24:55,582] INFO SearchService - Created search index with 5000 entries.
[2006-10-18 00:24:58,316] INFO SearchService - Created search index with 6000 entries.
[2006-10-18 00:25:01,378] INFO SearchService - Created search index with 7000 entries.
[2006-10-18 00:25:03,846] INFO SearchService - Created search index with 8000 entries.
[2006-10-18 00:25:06,721] INFO SearchService - Created search index with 9000 entries.


There seems to be a big wall to get through at 9000 entries!

Another thing worth mentioning is that I cant say I'm missing any musicfiles in the list, it's quite a lot of files though so I can be wrong. Maybe the problem is that the statuslist in the top left:

912 artists
712 albums
8,863 songs
48.91 GB (~ 759 hours)

is showing the wrong numbers?


/ Patrik
PeeGee
 
Posts: 23
Joined: Mon Oct 16, 2006 9:58 pm
Location: Stockholm

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 31 guests