left.view frame is too slow when many files in a directory
Hello everyone,
The problem is in the title, but let me tell you what I tried against it :
Using a ubuntu server, I got the sources of subsonic, deployed it on a tomcat, and I was amazed to see in the logs that the cache was disabled by default.
So I've set the cache value very hight, I've also set the Xmx setting of the JAVA VM high as I can spare lots of memory.
This solved one problem : once loaded, no more wait-time, even on full refresh of the page.
But in the end, the problem remains :
I have 480 files in one folder of my main raid5 array, it takes about 2 seconds for nautilus to display all of them (so ok, it's a huge directory, but listing it don't take so much time from an I/O point o f view).
But subsonic takes more than 5 hole minits to display the left frame containing the list of the files the first time.
So my guess is that somehow, the beans you're using to build this list are too big in memory that it takes so much time to write it in memory anyway when first loading the left.view.
Another problem is that those beans seems to be session-binded : opening 2 browsers, one AFTER the other, the second browser ALSO waits 5 minits for left.view to load. Why that ? Couldn't those beans be cached more permanently ?
I know this issue may not be one of the most important one since little people have so huge directories.
But is there someone working on a solution ?
Or could someone point me towards a usefull solution ? (I'm no expert at JAVA but I'm faily goot at lots of other languages, I'll find a way to do something
)
So I'm realy more looking for someone to analyse the problem and give me some hints on how to proceed with the correction
Thanks a lot, and of course, if you or I come up with a solution that d'ont fit only my needs I'll have it released opensource back to the subsonic community.
The problem is in the title, but let me tell you what I tried against it :
Using a ubuntu server, I got the sources of subsonic, deployed it on a tomcat, and I was amazed to see in the logs that the cache was disabled by default.
So I've set the cache value very hight, I've also set the Xmx setting of the JAVA VM high as I can spare lots of memory.
This solved one problem : once loaded, no more wait-time, even on full refresh of the page.
But in the end, the problem remains :
I have 480 files in one folder of my main raid5 array, it takes about 2 seconds for nautilus to display all of them (so ok, it's a huge directory, but listing it don't take so much time from an I/O point o f view).
But subsonic takes more than 5 hole minits to display the left frame containing the list of the files the first time.
So my guess is that somehow, the beans you're using to build this list are too big in memory that it takes so much time to write it in memory anyway when first loading the left.view.
Another problem is that those beans seems to be session-binded : opening 2 browsers, one AFTER the other, the second browser ALSO waits 5 minits for left.view to load. Why that ? Couldn't those beans be cached more permanently ?
I know this issue may not be one of the most important one since little people have so huge directories.
But is there someone working on a solution ?
Or could someone point me towards a usefull solution ? (I'm no expert at JAVA but I'm faily goot at lots of other languages, I'll find a way to do something
So I'm realy more looking for someone to analyse the problem and give me some hints on how to proceed with the correction
Thanks a lot, and of course, if you or I come up with a solution that d'ont fit only my needs I'll have it released opensource back to the subsonic community.