[Resin-interest] Slooow file reads (really weird!)
Hi list. I have my J2EE webapp on an external hard drive, which I carry between my office and my home computer. On each computer - running Windows XP and Java 1.5 - I have a Resin (3.0.22) installation and a shortcut to start Resin with the server root on the external drive. This has worked flawlessly for over a year. Now suddenly (ok, after returning from vacation), the application is immensely slow - on one of the computers! Starting Resin and the application now takes anywhere from 3 to 5 minutes on my home computer, compared to the usual 30 or so seconds. Loading a simple page can take 40 seconds. It seems that most of the time is spent inside the disk access of the dependency checking. (Turning dependency checking off was much faster, but still slower than normal). I tried to copy the project to the internal drive to see if there was some interface hardware issue - no difference. I profiled the application with JProfiler, and it thinks there is a hotspot in com.caucho.vsf.JniStream.read(). Why...? I am running out of ideas on what could be wrong and how to track it down. Any tips would be much welcome! /Mattias ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Slooow file reads (really weird!)
I have tried turning other applications and services, including firewall and anti-virus, off. Disk operations outside Resin (such as zipping the project or defragmenting the disc) does not seem affected. Thanks for the guess though. /Mattias Andre van Dalen wrote: Wild guess; maybe your viruschecker decided to check those reads where previously it did not (possibly also unpacking .jars on the fly in-memory as it sees them as zip archives) ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mattias Jiderhamn Sent: Friday 05 October 2007 11:20 To: Resin Subject: [Resin-interest] Slooow file reads (really weird!) Hi list. I have my J2EE webapp on an external hard drive, which I carry between my office and my home computer. On each computer - running Windows XP and Java 1.5 - I have a Resin (3.0.22) installation and a shortcut to start Resin with the server root on the external drive. This has worked flawlessly for over a year. Now suddenly (ok, after returning from vacation), the application is immensely slow - on one of the computers! Starting Resin and the application now takes anywhere from 3 to 5 minutes on my home computer, compared to the usual 30 or so seconds. Loading a simple page can take 40 seconds. It seems that most of the time is spent inside the disk access of the dependency checking. (Turning dependency checking off was much faster, but still slower than normal). I tried to copy the project to the internal drive to see if there was some interface hardware issue - no difference. I profiled the application with JProfiler, and it thinks there is a hotspot in com.caucho.vsf.JniStream.read(). Why...? I am running out of ideas on what could be wrong and how to track it down. Any tips would be much welcome! /Mattias ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Slooow file reads (really weird!)
Wild guess; maybe your viruschecker decided to check those reads where previously it did not (possibly also unpacking .jars on the fly in-memory as it sees them as zip archives) ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mattias Jiderhamn Sent: Friday 05 October 2007 11:20 To: Resin Subject: [Resin-interest] Slooow file reads (really weird!) Hi list. I have my J2EE webapp on an external hard drive, which I carry between my office and my home computer. On each computer - running Windows XP and Java 1.5 - I have a Resin (3.0.22) installation and a shortcut to start Resin with the server root on the external drive. This has worked flawlessly for over a year. Now suddenly (ok, after returning from vacation), the application is immensely slow - on one of the computers! Starting Resin and the application now takes anywhere from 3 to 5 minutes on my home computer, compared to the usual 30 or so seconds. Loading a simple page can take 40 seconds. It seems that most of the time is spent inside the disk access of the dependency checking. (Turning dependency checking off was much faster, but still slower than normal). I tried to copy the project to the internal drive to see if there was some interface hardware issue - no difference. I profiled the application with JProfiler, and it thinks there is a hotspot in com.caucho.vsf.JniStream.read(). Why...? I am running out of ideas on what could be wrong and how to track it down. Any tips would be much welcome! /Mattias ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Slooow file reads (really weird!)
Serge Kystautas wrote: I've seen something like this, and we were able to diagnose it on a Unix environment by using a program called truss (http://www.scit.wlv.ac.uk/cgi-bin/mansec?1+truss) which allows you to watch every file that is getting read. I don't know of a Windows equivalent. Most Java profilers I know of do not help you find IO related issues very well, so you might want to look for a lower level OS tool to see what's changing. Actually, truss comes with Interix. On Vista (certain editions only, like Ultimate, have this), use Program Manager, Turn Windows features on or off, and enable Subsystem for UNIX-based Applications for Interix 6.2. On pre-Vista Windows, go here for the free download of Interix 3.5: http://www.microsoft.com/windows/sfu It also has sendmail. I've been meaning to work up some how-to's but haven't figured out a couple of the finer points yet, Interix has gcc 3.3 and NetBSD's pkgsrc system has been ported to it, so you can build lots of gnu tools that don't come with Interix. If you have Server 2003 you need to do some more digging for the proper download. -Eric ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Slooow file reads (really weird!)
I've seen small TCP/IP MTU sizes cause similar behavior. We had VPN software that set the MTU to less than the IP default, which I think should have been 1500(?). Result was packet fragmentation that caused huge delays in the Microsoft TCP implementation. I think the MTU setting, in this case, was in the VPN software. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest