Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

VERY slow during Synchronizing
MikeN
#1 Posted : Thursday, 22 December 2011 2:35:31 PM(UTC)
Rank: Member

Joined: 22/12/2011(UTC)
Posts: 6
Location: Dallas

I have copied over directories and have run the Synchronizing process.

Every time I do this, the synch runs VERY slow. I had been use ASPListPics for years, and the synch process runs quite fast.

What would cause such slowness? I have a process running right now with 3323 objects, and it's only done 636 objects as of right now and has been running 45 minutes or so

BTW.... it shows my Synch rate as .1 objects/sec right now

Ideas?
Roger Martin
#2 Posted : Thursday, 22 December 2011 3:02:03 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I don't know how ASPListPics works, so I can't comment on why GSP seems slower, but I can tell you that during a sync GSP must load each image into memory, extract the metadata, build two smaller versions (thumbnail and optimized), and save them to disk. This is very resource intensive and is highly dependent on the server's memory, processing speed, and disk read/write speeds.

I have investigated one way to speed up the image creation process (2x or 3x), but it requires the server run in full trust, and for many users that is not an option, so I have avoided it for now.

There is also some potential for taking better advantage of many-core processors (using the .NET 4 parallel task abilities), which I may look at some time. Or, if anyone wants to tackle it themselves, I would welcome it.

I'll also add that SQL Server is faster than SQL CE, so if you aren't using it, you may want to.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
MikeN
#3 Posted : Thursday, 22 December 2011 3:23:57 PM(UTC)
Rank: Member

Joined: 22/12/2011(UTC)
Posts: 6
Location: Dallas

Gotcha... this is running on an older server for sure. I tried initially installing to my SQL Server, but couldn't seem to get the install to work with it, so I resorted to the built in SQL engine.

Just seems like 6+ hours to process 3323 pics is crazy :P
MikeN
#4 Posted : Thursday, 22 December 2011 3:29:29 PM(UTC)
Rank: Member

Joined: 22/12/2011(UTC)
Posts: 6
Location: Dallas

While I've got you.... any plans (or options I'm missing) to offer a different view for the directories? I really like the option I have with my current sw to show the size, last pic date, and number of sub galleries (directories)

Eg: http://mike.napurano.com/album/listpics.asp

Roger Martin
#5 Posted : Thursday, 22 December 2011 3:33:30 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Yeah, that's a long time. The good news is that GSP is optimized to be very fast once the sync is done. It doesn't even make a database call if the data is still in the memory from previous activity.

With version 3 (due in late 2012), GSP will offer a templating engine that lets you lay out the view any way you like. You can even assign templates on a per-album basis, so for example an album with documents can have a details view while an image-filled album can show thumbnails.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
MikeN
#6 Posted : Tuesday, 27 December 2011 3:21:50 PM(UTC)
Rank: Member

Joined: 22/12/2011(UTC)
Posts: 6
Location: Dallas

Well.... I stopped trying to synch pics, and just bringing up the gallery to view the pics is taking many minutes.
http://mike.napurano.com/gallery

Any ideas?
Roger Martin
#7 Posted : Tuesday, 27 December 2011 10:22:54 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Your link is returning a HTTP 500 error, so something serious is going on. Certainly, simply viewing a web page should not take several minutes unless your server is severely underpowered. Notice the demo site has over 100,000 objects, and it is quite speedy even though it is running on a shared server.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
MikeN
#8 Posted : Wednesday, 28 December 2011 12:18:15 AM(UTC)
Rank: Member

Joined: 22/12/2011(UTC)
Posts: 6
Location: Dallas

Yup... and everything else on that server (including the other websites) are running perfectly fine. Just the Gallery virtual directory is crapping out.

Any ideas or recommended debugging?
Roger Martin
#9 Posted : Wednesday, 28 December 2011 11:04:03 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I clicked the link again, and the page is still trying to load, two hours later. That is definitely not right. I think there is something more going on than a slow server.

The standard troubleshooting advice applies:
* Does a new, empty gallery behave the same way? What if you install it on another machine?
* What is the bottleneck (processor, memory, hard drive, network, etc)?
* Does the server's event log show anything interesting?
Roger Martin
Creator and Lead Developer of Gallery Server Pro
MikeN
#10 Posted : Thursday, 29 December 2011 10:10:17 AM(UTC)
Rank: Member

Joined: 22/12/2011(UTC)
Posts: 6
Location: Dallas

I have to say that at this point it's not worth trying to mess with. I have many other web sites and apps running on that server and none respond like this (neither are any of them .Net 4 either)

Oh well... your app looked promising, too bad.
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.