You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Tsuyoshi Ito (JIRA)" <ji...@apache.org> on 2010/10/08 08:15:31 UTC

[jira] Created: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
-----------------------------------------------------------------------------------------------------------------------

                 Key: CLEREZZA-320
                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
             Project: Clerezza
          Issue Type: Bug
         Environment: in netbeans, during cpu profiling exclude all java core classes
            Reporter: Tsuyoshi Ito
            Priority: Blocker


during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by Hasan Hasan <ha...@trialox.org>.
Karl, thanks for the explanation.


On Sun, Oct 10, 2010 at 1:58 PM, Karl Pauls (JIRA) <ji...@apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919595#action_12919595]
>
> Karl Pauls commented on CLEREZZA-320:
> -------------------------------------
>
> @Hasan, there are certain cases where classes from the outside expect that
> they can use any classloader to get to outside classes (e.g., swing). Thats
> why we have a magic bootdelegation in felix that detects these cases and
> bootdelegates automagically. This is one of the cases and I fixed it in the
> issue for ipojo iirc. However, it might very well be that we don't detect
> this special case because of your set-up. It looks like there is scala in
> the mix too etc. so maybe thats what prevents us form auto-bootdelegation
> (we only do it if we are sure  - when in doubt we don't)
>
> > SSP rendering is slow:
> scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of
> time to be executed
> >
> -----------------------------------------------------------------------------------------------------------------------
> >
> >                 Key: CLEREZZA-320
> >                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
> >             Project: Clerezza
> >          Issue Type: Bug
> >         Environment: in netbeans, during cpu profiling exclude all java
> core classes
> >            Reporter: Tsuyoshi Ito
> >            Assignee: Reto Bachmann-Gmür
> >            Priority: Blocker
> >         Attachments: org.clerezza.test.render.zip,
> page_reuest_wo_javacore.png
> >
> >
> > during profiling session we detected that rendering ssp is very slow. A
> lot of time is used to execute
> scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that
> each execution the classes are (re)loaded. IMO this should not be the case.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

[jira] Updated: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Tsuyoshi Ito (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsuyoshi Ito updated CLEREZZA-320:
----------------------------------

    Attachment: org.clerezza.test.render.zip

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reto Bachmann-Gmür closed CLEREZZA-320.
---------------------------------------


> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png, stresstest-200users.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Tsuyoshi Ito (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919790#action_12919790 ] 

Tsuyoshi Ito edited comment on CLEREZZA-320 at 10/11/10 6:57 AM:
-----------------------------------------------------------------

tested on an demoserver (linux, quad-core, 8GB RAM):

A page executes 20x render(...) and consists of 8-10 ssp renderlets

200 concurrent users (10 sec click delay) average respone time 160ms (see attachement)



      was (Author: tsuy):
    tested on an demoserver (linux, quad-core, 8GB RAM):

200 concurrent users (10 sec click delay) average respone time 160ms (see attachement)


  
> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png, stresstest-200users.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Tsuyoshi Ito (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsuyoshi Ito updated CLEREZZA-320:
----------------------------------

    Attachment: page_reuest_wo_javacore.png

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reto Bachmann-Gmür reassigned CLEREZZA-320:
-------------------------------------------

    Assignee: Reto Bachmann-Gmür

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Tsuyoshi Ito (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919790#action_12919790 ] 

Tsuyoshi Ito commented on CLEREZZA-320:
---------------------------------------

tested on an demoserver (linux, quad-core, 8GB RAM):

200 concurrent users (10 sec click delay) average respone time 160ms (see attachement)



> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png, stresstest-200users.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Tsuyoshi Ito (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsuyoshi Ito updated CLEREZZA-320:
----------------------------------

    Attachment: stresstest-200users.png

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png, stresstest-200users.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919329#action_12919329 ] 

Reto Bachmann-Gmür commented on CLEREZZA-320:
---------------------------------------------

Whenever I don't recreate the ClassLoader on every execution
I get the following error:

java.lang.ClassNotFoundException: sun.reflect.MethodAccessorImpl
	at scala.tools.nsc.interpreter.AbstractFileClassLoader.onull$1(AbstractFileClassLoader.scala:21)
	at scala.tools.nsc.interpreter.AbstractFileClassLoader$$anonfun$getBytesForClass$1.apply(AbstractFileClassLoader.scala:26)
	at scala.tools.nsc.interpreter.AbstractFileClassLoader$$anonfun$getBytesForClass$1.apply(AbstractFileClassLoader.scala:25)
	at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
	at scala.collection.immutable.List.foreach(List.scala:45)
	at scala.tools.nsc.interpreter.AbstractFileClassLoader.getBytesForClass(AbstractFileClassLoader.scala:25)
	at scala.tools.nsc.interpreter.AbstractFileClassLoader.findClass(AbstractFileClassLoader.scala:33)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at scala.tools.nsc.interpreter.AbstractFileClassLoader.scala$tools$nsc$util$ScalaClassLoader$$super$loadClass(AbstractFileClassLoader.scala:16)
	at scala.tools.nsc.util.ScalaClassLoader$class.loadClass(ScalaClassLoader.scala:57)
	at scala.tools.nsc.interpreter.AbstractFileClassLoader.loadClass(AbstractFileClassLoader.scala:16)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

The puzzling thing is that if I create a new AbstractFileClassLoader(virtualDirectory, this.getClass.getClassLoader()) it doesn't try to access this class and works.


> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919180#action_12919180 ] 

Reto Bachmann-Gmür commented on CLEREZZA-320:
---------------------------------------------

see http://svn.apache.org/viewvc/incubator/clerezza/trunk/scala-scripting/script-engine/src/main/scala/org/apache/clerezza/scala/scripting/ScriptEngineFactory.scala?view=markup line 257
the class is loaded on every execution, the problem is that caching the classloader leeds to a "java.lang.NoClassDefFoundError: sun/reflect/MethodAccessorImpl" (in /test/render-ssp)

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Hasan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919460#action_12919460 ] 

Hasan commented on CLEREZZA-320:
--------------------------------

I also think adding sun.reflect to org.osgi.framework.system.packages.extra is the way to go until sun fixes that 5 year bug. But I still don't understand why the fix of Karl (https://issues.apache.org/jira/browse/FELIX-2421) cannot help, if the FELIX-2421 issue is related to that 5 year bug. Anyway, I wonder how much the performance of ssp rendering would improve.

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Karl Pauls (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919595#action_12919595 ] 

Karl Pauls commented on CLEREZZA-320:
-------------------------------------

@Hasan, there are certain cases where classes from the outside expect that they can use any classloader to get to outside classes (e.g., swing). Thats why we have a magic bootdelegation in felix that detects these cases and bootdelegates automagically. This is one of the cases and I fixed it in the issue for ipojo iirc. However, it might very well be that we don't detect this special case because of your set-up. It looks like there is scala in the mix too etc. so maybe thats what prevents us form auto-bootdelegation (we only do it if we are sure  - when in doubt we don't)

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Hasan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919547#action_12919547 ] 

Hasan commented on CLEREZZA-320:
--------------------------------

thx reto for the patch.
I can confirm the performance improvement. ssp rendering is now only 1.5 to 2 times slower than java


> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919341#action_12919341 ] 

Reto Bachmann-Gmür commented on CLEREZZA-320:
---------------------------------------------

things getting clerarer: the classloader can be used for 15 requests!

http://www.mail-archive.com/users@felix.apache.org/msg07724.html

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reto Bachmann-Gmür resolved CLEREZZA-320.
-----------------------------------------

    Resolution: Fixed

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919472#action_12919472 ] 

Reto Bachmann-Gmür commented on CLEREZZA-320:
---------------------------------------------

Please check the prformnace with the latest patch, my tests inidcates performance improved massively, even though it's not yet as fast as java (as long as we check the source of the ssp for changes it will never be).

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Assignee: Reto Bachmann-Gmür
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Tsuyoshi Ito (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919171#action_12919171 ] 

Tsuyoshi Ito commented on CLEREZZA-320:
---------------------------------------

in org.clerezza.test.render.zip is a testbundle which contains a method to call a ssp renderlet:
http://localhost:8080/test/render-ssp

it is also possible to compare it to a java renderlet with the same content:
http://localhost:8080/test/render-java

it is 10times faster.

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919347#action_12919347 ] 

Reto Bachmann-Gmür commented on CLEREZZA-320:
---------------------------------------------

once the foolowing is resolved things get easier: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6265952

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919350#action_12919350 ] 

Reto Bachmann-Gmür commented on CLEREZZA-320:
---------------------------------------------

I can work around the problem by adding sun.reflect to org.osgi.framework.system.packages.extra, not very elegant but a temporary solution

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919349#action_12919349 ] 

Reto Bachmann-Gmür commented on CLEREZZA-320:
---------------------------------------------

@Karl: it doesn't seem so, clerezza uses mvn:org.apache.felix/org.apache.felix.main/3.0.3

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLEREZZA-320) SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of time to be executed

Posted by "Karl Pauls (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919346#action_12919346 ] 

Karl Pauls commented on CLEREZZA-320:
-------------------------------------

What version of felix are you using? It might be that >=3.0.2 fixes your problem:

https://issues.apache.org/jira/browse/FELIX-2421

> SSP rendering is slow: scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs  a lot of time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-320
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-320
>             Project: Clerezza
>          Issue Type: Bug
>         Environment: in netbeans, during cpu profiling exclude all java core classes
>            Reporter: Tsuyoshi Ito
>            Priority: Blocker
>         Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot of time is used to execute scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each execution the classes are (re)loaded. IMO this should not be the case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.