You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Elvy <pi...@gmail.com> on 2007/12/13 14:11:19 UTC

Class.forName() inside JIDE (a cots) take huge time to return

Hi all,

Maybe you guys know the  http://www.jidesoft.com JIDE  library. I'm using
it, never add any problem outside OSGi but now...

The screenshot bellow, is the CPU time usage from my app.
http://www.nabble.com/file/p14315611/cpu_view.jpg 

As you can see, too much time is passed within the Class.forName().

Basically, the first time I use a component provided by JIDE, it'll take
this amount of time. Then, everything goes normally.

I used JProfiler to monitor my program but couldn't retrieved what goes on
after the forName... if you know how to do it, that would be good.

Any idea?

-----
Tell me something you don't know!
-- 
View this message in context: http://www.nabble.com/Class.forName%28%29-inside-JIDE-%28a-cots%29-take-huge-time-to-return-tp14315611p14315611.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Class.forName() inside JIDE (a cots) take huge time to return

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Elvy,

So, for now you can work from trunk, but we are going to try to get a 
1.0.2 release out pretty soon, which will include this fix, so look for it.

-> richard

Karl Pauls wrote:
> yes, this should be fixed in trunk.
>
> regards,
>
> Karl
>
> On 12/13/07, Richard S. Hall <he...@ungoverned.org> wrote:
>   
>> I believe there is a fix for this in the trunk.
>>
>> Isn't that correct, Karl?
>>
>> -> richard
>>
>> Elvy wrote:
>>     
>>> I've got news on the problem and as I though it is related more to Felix than
>>> to JIDE. I had to get the jdk debug version to be able to watch java
>>> values/calls...
>>>
>>> There are actually many Class.forName() calls on my App startup but only one
>>> of them takes a lot of time =>
>>> Class.forName("org.apache.felix.framework.searchpolicy.ContentClassLoader");
>>>
>>> After this is called, I followed execution and ended up on the one blocking
>>> call => u.hostAddress = InetAddress.getByName(host);
>>>
>>> http://www.nabble.com/file/p14317635/screenshot_debug1.jpg
>>>
>>> What is this url? Felix://extensions/ ??
>>>
>>> -----
>>> Tell me something you don't know!
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>>     
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Class.forName() inside JIDE (a cots) take huge time to return

Posted by Karl Pauls <ka...@gmail.com>.
yes, this should be fixed in trunk.

regards,

Karl

On 12/13/07, Richard S. Hall <he...@ungoverned.org> wrote:
> I believe there is a fix for this in the trunk.
>
> Isn't that correct, Karl?
>
> -> richard
>
> Elvy wrote:
> > I've got news on the problem and as I though it is related more to Felix than
> > to JIDE. I had to get the jdk debug version to be able to watch java
> > values/calls...
> >
> > There are actually many Class.forName() calls on my App startup but only one
> > of them takes a lot of time =>
> > Class.forName("org.apache.felix.framework.searchpolicy.ContentClassLoader");
> >
> > After this is called, I followed execution and ended up on the one blocking
> > call => u.hostAddress = InetAddress.getByName(host);
> >
> > http://www.nabble.com/file/p14317635/screenshot_debug1.jpg
> >
> > What is this url? Felix://extensions/ ??
> >
> > -----
> > Tell me something you don't know!
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
Karl Pauls
karlpauls@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Class.forName() inside JIDE (a cots) take huge time to return

Posted by "Richard S. Hall" <he...@ungoverned.org>.
I believe there is a fix for this in the trunk.

Isn't that correct, Karl?

-> richard

Elvy wrote:
> I've got news on the problem and as I though it is related more to Felix than
> to JIDE. I had to get the jdk debug version to be able to watch java
> values/calls...
>
> There are actually many Class.forName() calls on my App startup but only one
> of them takes a lot of time =>
> Class.forName("org.apache.felix.framework.searchpolicy.ContentClassLoader");
>
> After this is called, I followed execution and ended up on the one blocking
> call => u.hostAddress = InetAddress.getByName(host);
>
> http://www.nabble.com/file/p14317635/screenshot_debug1.jpg 
>
> What is this url? Felix://extensions/ ??
>
> -----
> Tell me something you don't know!
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Class.forName() inside JIDE (a cots) take huge time to return

Posted by Elvy <pi...@gmail.com>.
I've got news on the problem and as I though it is related more to Felix than
to JIDE. I had to get the jdk debug version to be able to watch java
values/calls...

There are actually many Class.forName() calls on my App startup but only one
of them takes a lot of time =>
Class.forName("org.apache.felix.framework.searchpolicy.ContentClassLoader");

After this is called, I followed execution and ended up on the one blocking
call => u.hostAddress = InetAddress.getByName(host);

http://www.nabble.com/file/p14317635/screenshot_debug1.jpg 

What is this url? Felix://extensions/ ??

-----
Tell me something you don't know!
-- 
View this message in context: http://www.nabble.com/Class.forName%28%29-inside-JIDE-%28a-cots%29-take-huge-time-to-return-tp14315611p14317635.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org