[Resin-interest] Slooow file reads (really weird!)

2007-10-05 Thread Mattias Jiderhamn
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!)

2007-10-05 Thread Mattias Jiderhamn
By the way, the CPU usage is peaking all the way through. Around 49% on
my dual core system.
(And there is even more memory on the computer with the problem than the
other one)

> -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!)

2007-10-05 Thread Mattias Jiderhamn
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!)

2007-10-05 Thread Dalen, Andre van

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!)

2007-10-05 Thread Serge Knystautas
Mattias Jiderhamn wrote:
> 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.

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.

What we found was that the application was looking for a class that did 
not exist.  Java does not hold a cache entry for "class not found", so 
it kept opening every jar in the entire classpath to find said class, 
numerous times for a single http request because of where this library 
was used.  You might want to check all the resin/lib and WEB-INF/lib and 
whatever other classes to see if a non-critical class is missing but 
being searched for over and over.

Hope this helps.

-- 
Serge Knystautas
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Slooow file reads (really weird!)

2007-10-05 Thread Eric J. Bowman
>
> 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!)

2007-10-05 Thread Tom Hintz
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


Re: [Resin-interest] Slooow file reads (really weird!)

2007-10-05 Thread Scott Ferguson

On Oct 5, 2007, at 4:31 AM, Mattias Jiderhamn wrote:

> By the way, the CPU usage is peaking all the way through. Around  
> 49% on
> my dual core system.
> (And there is even more memory on the computer with the problem  
> than the
> other one)

Do you see a difference if you remove the resin.dll? (Which would  
disable the JNI.)

Also, what is the stack trace for the slow read() call?

-- Scott

>
>> -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] How to use Hibernate JPA with Resin 3.1.2

2007-10-05 Thread David S. Hansen
rm $RESIN_HOME/lib/ejb-30.jar worked for us

  - Dave

On Oct 4, 2007, at 2:52 AM, LSK7 wrote:

>
> I could not figure out how to use Hibernate JPA with resin 3.1.2.  
> The link
> here says that the bug for the third party persistence providers  
> has been
> fixed in resin-3.1.2 but I am not able to see that happening.
> http://bugs.caucho.com/view.php?id=1507
> http://bugs.caucho.com/view.php?id=1507
> -- 
> View this message in context: http://www.nabble.com/How-to-use- 
> Hibernate-JPA-with-Resin-3.1.2-tf4566861.html#a13035799
> Sent from the Resin mailing list archive at Nabble.com.
>
>
>
> ___
> 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