You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org> on 2012/11/25 11:00:58 UTC

[jira] [Created] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Howard W. Smith, Jr. created OPENEJB-1955:
---------------------------------------------

             Summary: TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
                 Key: OPENEJB-1955
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
             Project: OpenEJB
          Issue Type: Question
          Components: container system
    Affects Versions: 1.6.0
         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;

Internet connection is powered by Verizon Wireless 4G
            Reporter: Howard W. Smith, Jr.
            Priority: Minor
             Fix For: 1.6.0


I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.

My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).

Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.

Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507201#comment-13507201 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Oh, i updated JSF-managed-bean web app with these jpa performance tuning code changes as well, so it can run 'faster' (hopefully) on production server. :)
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505759#comment-13505759 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Okay, well, i'm really impressed with some results that I'm seeing already via a few setHint() I just added to 2 separate queries.

I did the following:

OrdersFacade.filterBy()
1. this retrieves data selected by user (usually current date)
2. this is the most commonly-used (or popular) query
3. added the following to this (dynamic sql) query:

.setHint("eclipselink.query-results-cache", "true");


OrdersFacade.findAllConfirmed()
1. retrieves data for the entire year, based on the date range selected by user (same date range passed to OrdersFacade.filterBy(), above)
2. this is called everytime OrdersFacade.filterBy(), above, is called
3. in production, this query is dynamic SQL
4. today, I changed this to be a namedQuery
5. with the code changes below, bval is NOT called!!!
6. added the following to this query:

q = getEntityManager().createNamedQuery(namedQuery);
q.setParameter("from", dateFrom, TemporalType.TIMESTAMP)
 .setParameter("to", dateTo, TemporalType.TIMESTAMP)
 .setHint("eclipselink.query-results-cache", "true")
 .setHint("eclipselink.read-only", "true");

Remember you told me to do the 'warmup'? I assume that can be the first retrieve, that can be cached, or at least the query results can be cached. So, I was just testing all of the code changes (above), and I can tell that the cache is being used. Here are the test results:

1. WARMUP: login to app and findAllConfirmed() for the first time: took 5,599 ms

2. Selected a FROM date, 11/19/2012, and findAllConfirmed() took 191 ms

3. Selected TO date, 11/23/2012 (which results in larger result set), and findAllConfirmed() took 102 ms

4. Selected a row on datatable and clicked VIEW, and then clicked Browse to return to page with dataTable, and findAllConfirmed() took 100 ms

I may need to add the following code changes to many other queries that I've defined in the app. Of course, I have to be careful to make sure that I don't add 'read-only' query hint everywhere, but I think it is safe to add read-only query hint to findAllConfirmed().

                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505516#comment-13505516 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Please note the following:

1. pf_OrdersController.filterBy() is the set of code selects data based on today's date by default

2. pf_OrdersController.getOrderNumberList() is the set of code that will select a bunch of rows for dates (from 01/01/2012 to 12/31/2012, or FROM beginning of year to END of year), so that we can apply an ORDER # to each ORDER.

Can implementation of #2 be improved? Yes, I can store the order # as a column on the database, and update that value based on the # of actual orders placed during the current year, but we're not here to discuss that now. We are here to discuss why is my code slower deploy to/as TomEE/CDI.


                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510335#comment-13510335 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

It's no longer non-jta. It's using persistence unit (mcmsPU), which is the JTA datasource. This all happened after I installed latest SNAPSHOT (12.03.2012) that I downloaded....onto production server. :)
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507347#comment-13507347 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Sorry, never mind, I see instructions for eclipselink javaagent added as jvm option (to tomee).

http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Dynamic_Weaving

My only question, they recommend javaagent (dynamic weaving), if # of classes (to weave) is a small number. I have 57 entity classes; do they consider that small or large number of classes to weave?

I also see that someone else asked how to do this via NetBeans:

http://stackoverflow.com/questions/10431819/how-to-apply-static-weaving-ant-task-with-eclipse-link-jpa-in-netbeans
http://forums.netbeans.org/topic47988.html

                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507204#comment-13507204 ] 

Romain Manni-Bucau commented on OPENEJB-1955:
---------------------------------------------

Side note: maybe consider either to add to tomee eclipselink javaagent or enhance your entities at build time http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static_Weaving
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506627#comment-13506627 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Please close this issue. Glassfish 3.1.2.2 and JSF managed beans fulfilling requirements. For now, I'm going to maintain JSF managed beans and Glassfish 3.1.2.2 in production. I am considering using TomEE and PrimeFaces Push to push data to web clients. I think I heard that I may need a load balancer in place for that.

Not giving up on TomEE quite yet, but I've already spent too much time on this effort.

Thanks for all your help.
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Attachment: 20121128_profileLogin_initOrdersController3.jpg
                20121128_profileLogin_initOrdersController2.jpg
                20121128_profileLogin_initOrdersController1.jpg

I just attached the following:

20121128_profileLogin_initOrdersController1.jpg
20121128_profileLogin_initOrdersController2.jpg
20121128_profileLogin_initOrdersController3.jpg

These 3 screen captures show the following:

1. pf_OrdersController @PostConstruct initializes a POJO called FileHandler, which uses TIKA for MimeTypes.

2. This reference to TIKA for MimeTypes seems to call TomEE/container's resources logic, and significantly slows down initialization/injection of pf_OrdersController.

3. Evidently, I need to 'lazily' initialize my utility class, FileHandler, since endusers are not using/accessing FileHandler logic much at all!

                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510319#comment-13510319 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

My persistence.xml looks like below. I thought I saw somewhere that I need to keep jta and non-jta in persistence.xml. Please confirm.


<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
             xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
    <persistence-unit name="mcmsPU" transaction-type="JTA">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <jta-data-source>jdbc/mcmsJta</jta-data-source>
        <non-jta-data-source>jdbc/mcmsNonJta</non-jta-data-source>
        <exclude-unlisted-classes>false</exclude-unlisted-classes>
        <properties>
        <property name="eclipselink.target-database" 
                  value="org.eclipse.persistence.platform.database.DerbyPlatform"/>
        <property name="eclipselink.jdbc.cache-statements" value="true" />
        <property name="eclipselink.jdbc.cache-statements.size" value="100" />
        <property name="eclipselink.logging.parameters" value="false" />
        </properties>
    </persistence-unit>
</persistence>

                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507198#comment-13507198 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Today (and this evening), I added query hints to jpa query calls, updated jdbc properties in persistence.xml (eclipselink performing tuning properties), and at least tested the code changes with my TomEE/CDI-managed-beans web app on my fast server (Windows Server 2008), and it seems just as fast as the Glassfish/JSF-managed beans web app (running on the slower server, Windows Server 2003).

Next, I would like to creatively render my pages, conditionally, via bean properties instead of rendered="...". More than likely, i plan to use ui:include src="#{bean.page}", but i need to create templates or copies of the xhtml pages.

Romain recommended single transaction. Will note that here as a friendly reminder. :)

                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505520#comment-13505520 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Conclusion (based on the last 2 posts above),

1. there is 'no' need to tune the JPA code that is called by pf_OrdersController.filterBy(). that code is running fast.

2. there is a need to possibly optimize pf_OrdersController.getOrderNumberList()

                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510349#comment-13510349 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Today (or this evening), I replaced the use of rendered="#{EL expression}" with ui:include src="#{EL expression}", and created new/additional pages for the rendered="..." content. That seems to have made TomEE/CDI perform better on the production machine.

I pushed TomEE/CDI to production machine. I hope it will go well 'today' in production as a debut. :)
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505523#comment-13505523 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Also, I am currently 'not' using the validation-mode = NONE in persistence.xml. The 3 screen captures posted above reflect performance 'without' validation-mode = NONE.
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503579#comment-13503579 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Don't think CDI? Smiling... hard 'not' to think CDI. pf_OrdersController is huge clump of source code, it works well and is created very fast as JSF managed bean in a 'JSF managed bean' container (Glassfish...smile).

I need to learn how to properly use and develop CDI managed beans that will run well in a container that can handle CDI (TomEE).
                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Summary: TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server  (was: TomEE 1.5.1 SNAPSHOT running slow on my production server)
    
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506303#comment-13506303 ] 

Romain Manni-Bucau commented on OPENEJB-1955:
---------------------------------------------

do you wave the entities? i think glassfish maybe does it

about TIKA stuff you can avoid serializing it using a transient field i think
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Attachment: jvisualvm_20121127.nps
                jvisualvm_20121127.html
                jvisualvm_20121127.csv

jvisualvm files from latest test; please note, LogSql was turned on, and now I don't know how to turn off. LogSql = false and removing LogSql from tomee.xml does not stop logging SQL
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Description: 
I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.

My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).

Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.

Per Romain and Mark, I ran jvisualvm to provide some benchmarks.

Please review attached files and confirm and advise.

  was:
I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.

My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).

Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.

Please review attached files and confirm and advise.

    
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Attachment: web.xml
                jvisualvm_tomee.nps
                jvisualvm_tomee.html

As requested, jvisualvm output files, also web.xml, so you can see how i have atmosphere (or primefaces push) configured for the web app.
                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee.html, jvisualvm_tomee.nps, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503586#comment-13503586 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

pf_OrdersController is CDI @SessionScoped and injects many other CDI @SessionScoped beans and EJB @Stateless via @Inject. So, you can imagine that tomcat/tomee (as well as Windows Server 2003/2008) struggles to inject/instantiate pf_OrdersController. Agree?

That probably explains the really long wait after login. After user succcessfully login, pf_OrdersController is injected, because an ORDERS page is displayed/rendered to/for enduser in the browser.

                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507008#comment-13507008 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Actually, this can stay open. I still plan to eliminate use of rendered="..." in the xhtml pages, and I'd like to report back here any/all test results. Thanks again. :)
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504092#comment-13504092 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Since TomEE 1.5.1 (Plus) SNAPSHOT currently does not implement CDI 1.1 (as mentioned above), I decided to do the following:

1) replaced all @Inject with @EJB for sessionFacade classes injected into CDI managed beans; Romain/OpenEJB says that it is a very little bit faster to use @EJB instead of @Inject

2) Modified pf_ChargesController: removed reference to pf_OrderCostDetailsController

3) Modified AddressType, EmailAddressType, MethodOfPayment, PhoneType, MealStopType controllers: request scoped instead of session scoped, and remove most of the 'controller' code, since these controllers only need the 'byName' and 'SelectOne' methods

4) Modified many beans/controllers to use CODI BeanManagerProvider.getInstance().getContextualReference() to simulate FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get() that was used in the JSF managed bean code/baseline version of the app, which is currently in production

Need to deploy the app (with these changes) to production server and re-test, when production server is available

                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505508#comment-13505508 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

20121128_profileLogin1.jpg

Shows the performance of my original use of JPA, which includes dynamic SQL (SELECT * from table WHERE ...). Below is the code that was issued:

q = getEntityManager().createQuery(queryStr);


20121128_profileLogin2.jpg

Shows performance after added eclipselink.read-only = true as query hint

q = getEntityManager().createQuery(queryStr).setHint("eclipselink.read-only", "true");


20121128_profileLogin3.jpg

Shows performance of using named query

            q = getEntityManager().createNamedQuery("Orders.filterByDate");
            q.setParameter("from", dateFrom, TemporalType.TIMESTAMP).
              setParameter("to", dateTo, TemporalType.TIMESTAMP);

                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503550#comment-13503550 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

pf_OrdersController is 'huge' in size (or byte count, lines of code). That is the core of the web application. I couldn't even find pf_OrdersController in jvisualvm output; I'm glad you found it. Evidently, I was looking at the output incorrectly.

I just navigated through some of the pages. I guess it is best to do one jvisualvm output file per page in JSF web app.

Along with what Mark recommended about rendered=, i need to eliminate/minimize use of rendered=... and I need to move much of the (potentially-stateless) code in pf_OrdersController to @CDI RequestScoped or @Stateless.

So, PrimeFaces Push (Atmosphere) is not the cause of this problem? FYI, PrimeFaces Push (Atmosphere) is working perfectly/flawlessly in TomEE/Windows Server 2003 environment; it pushes. You think it is injection of pf_OrdersController?

                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503571#comment-13503571 ] 

Romain Manni-Bucau commented on OPENEJB-1955:
---------------------------------------------

Hard to say without the code and with your figures but think that s somewhere else right...dont think to cdi btw
                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Attachment: jvisualvm.nps
                jvisualvm.html
                jvisualvm.csv

Deployed latest app changes to production server (Windows 2003 Server 32bit 4GB RAM).

jvisualvm output files attached only includes app startup, user login, and first page that is displayed to user after successful user login.

In other words, this test is primarily testing to see how long it takes for pf_OrdersController to be initialized in/by the container. Please note, pf_OrdersController is CDI @SessionScoped bean that uses @Inject (and MyFaces CODI BeanManagerProvider) to inject other CDI @SessionScoped (and @RequestScoped) beans.

also, please note that today's latest app changes was an attempt to avoid CDI cyclic references; that is why I used MyFaces CODI BeanManagerProvider to the best of my ability to accomplish this.

The test result is still unsatisfactory; the web app is still very very (or 'too') slow to push this TomEE/CDI web app version to 'production.

Of course, per this JIRA/issue, I am attempting to 'tune' the app, especially all CDI managed beans, so this TomEE/CDI web app version will perform 'better than' or similar to Glassfish3.1.2.2/JSF-managed-beans web app that is currently in production...on production server.
                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507334#comment-13507334 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Please tell me more or share a URL related to tomee eclipselink javaagent. Thanks.
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510311#comment-13510311 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Wow, my CDI app is running pretty fast via TomEE 1.5.1 SNAPSHOT on the production server. Testing right now. Only thing that concerns me is my datasource is non-JTA, maybe because I assigned eclipselink properties in persistence.xml.

Please confirm.

I'm about to install latest TomEE 1.5.1 SNAPSHOT (that I have on my test/dev server). Also, let me know if I should download latest TomEE 1.5.1 SNAPSHOT from the repository; i didn't check today, was tuning my app (web pages).
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Attachment: 20121128_profileLogin3_getOrderNumberList.jpg
                20121128_profileLogin2_getOrderNumberList.jpg
                20121128_profileLogin1_getOrderNumberList.jpg

Just wanted to share these 3 screen captures to show minimum detail related to getOrderNumberList()
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506140#comment-13506140 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Interesting. Even though FileHandler is defined as following on CDI @SessionScoped pf_OrdersController:

private FileHandler fileHandler = null;

OWB/TomEE initializes this class, and FileHandler's,

Detector DETECTOR = null;

gets instantiated, since TIKA's Detector class implements Serializable.

I need to make FileHandler CDI @SessionScoped and use @Inject.  :)


                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506291#comment-13506291 ] 

Jean-Louis MONTEIRO commented on OPENEJB-1955:
----------------------------------------------

Hi Howard,

I read carefully all your messages and went into some VisualVM snapshots.
Maybe I missed something but did not saw significant overhead in OpenEJB/TomEE.

In some of them, I saw BVal.

Anyway, yes the query cache can provide huge improvements cause you don't have the sql cpu time in the database itself, but you also don't have the time spent in network, extracting results, creating objects, etc.

But, it has to be configured carefully and I'm my opinion should be primary on read only data (reference data to name but a few).
On read/write data, the result is not that significant as you have o deal with transaction and synchronize accesses. Moreover, in a clustered environment, you have to set up a distributed cache which is really painful to configure and which provide a significant overhead. In other words, it's sometimes worse that without cache.

With that big picture in mind, I'm not sure we have to provide default settings for cache in EclipseLink or Hibernate/OpenJPA btw.
But, that could be interesting to put a page up on the site describing possible optimizations per JPA Provider. WDYT?
I'm happy to create the page and let you fill it with EclipseLink specific configurations.

Are you sure that's the only difference between glassfish and TomEE?
That seems strange to me Glassfish is caching queries out of the box.

Anyway, a big thanks for your investigations and time.


                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Attachment: catalina.2012-11-27.log

Per Romain, I am attaching catalina log, which has times it took to execute SQL. Opened a few pages in the web app.

You can search log for the following that I added in the log:

***
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: catalina.2012-11-27.log, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506176#comment-13506176 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Since I still have Glassfish 3.1.2.2 and JSF managed beans web application running on production server, I like to compare speed and performance. I know EclipseLink comes bundled with Glassfish, so I really think Glassfish is running web apps with optimized parameters to EclipseLink, because queries are fast.

I'm wonder if TomEE is leaving it up to developer to fully optimize JPA within apps.

I know TomEE would love to gain Glassfish users. Maybe it is a good idea for TomEE to optimize as much as possible for developers, especially for those migrating from Glassfish.
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Attachment: jvisualvm_tomee_smaller.html
                jvisualvm_tomee_smaller.csv
                jvisualvm_tomee_excel_smaller.csv

smaller jvisualvm files
                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510332#comment-13510332 ] 

Romain Manni-Bucau commented on OPENEJB-1955:
---------------------------------------------

Not sure i follow you since with this persistence.xml you datasource is jta. eclipselinks probably optimize some request + cache results but you are not in resource_local mode
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503487#comment-13503487 ] 

Romain Manni-Bucau commented on OPENEJB-1955:
---------------------------------------------

Your orders controller seems slow

Bval too but seems that s the first parsing. How did you profile? How many times did you run your use case (seems not enough to get real figures)
                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504409#comment-13504409 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

jvisualvm is not showing me how much time it takes to <init> pf_OrdersController; from what I see, pf_OrdersController is at the bottom of the stack, almost the last thing on that particular stack, and it appears as though the entire stack is taking 48,407 ms (approximately 48 seconds).

I am glad to see/learn that all of the other members (other CDI @SessionScoped and @RequestScoped beans) are not initialized during pf_OrdersController <init>. I have confirmed that the other CDI beans are initialized when they are referenced by xhtml or another bean. That is a nice-to-know (or lesson-learned) for me. :)
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506476#comment-13506476 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Jean-Louis,

Please don't quote me on Glassfish caching right out the box. All I know, my JSF-managed-beans web app is running much faster on Glassfish 3.1.2.2 on Windows Server 2003 32bit 4GB RAM, faster than TomEE / CDI web app on Windows Server 2003 32bit 4GB RAM and Windows Server 2008 64bit 16GB RAM. For this reason, I cannot push my TomEE / CDI web app to production server 'yet' and expect endusers to appreciate the extreme slowness of responses from web app. :(

Even though I put a lot of effort in optimizing the app so far, I am not seeing any performance improvement on Windows Server 2003 32bit platform. I think I see performance improvement on Windows Server 2008 64bit, but I am at a loss on optimizing web app to deploy it to TomEE on Windows Server 2003.

I am not done yet with all of my planned optimizing yet.

I'm already running JDK 1.7.07 on Windows Server 2003 32bit, but I see that there is another JDK or JRE update available, I think it's JDK 1.7.09, right? Maybe that addresses some issues related to Windows 32bit environments. Romain did tell me that app will only run as good as the JVM will allow it to run.

Romain, honestly, I don't know if I'm waving the entities. I read something about weaving, but I don't know if that's what you're talking about. Okay about TIKA stuff; it's not a real big concern. It serializes itself on app startup only, and living on an CDI @ApplicationScoped bean.
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Attachment: 20121128_profileLogin3.jpg
                20121128_profileLogin2.jpg
                20121128_profileLogin1.jpg

Attached screen captures of profiling login 1, 2, and 3. will explain more in next comment.
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Summary: TomEE 1.5.1 SNAPSHOT running slow on my production server  (was: TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere)
    
> TomEE 1.5.1 SNAPSHOT running slow on my production server
> ---------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506151#comment-13506151 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Seems best for me to add to my CDI @ApplicationScoped bean, since there is no need for each user to own their own copy of FileHandler.
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503814#comment-13503814 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Willing to try applicationscoped just for test. Thanks.

Interesting point about ejb. TomEE ejb examples web page demonstrated using @inject to inject @stateless ejb. If you recommend using @ejb, then I will do that.

Your response just reminded me that when I initially migrated all code from JSF managed beans to CDI managed beans, that I used @inject to inject beans that were instantiated via session#getAttribute. Orderscontroller injects ordercostdetailscontroller, and ordercostdetailscontroller injects Orders controller. So my CDI code is much different than JSF managed code. I may need to use CODI bean reference utility for those cases to avoid cyclic injection when both are injected. Agree?

Just recognized that using CODI bean reference was already on my to-do list for today.
                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard W. Smith, Jr. updated OPENEJB-1955:
------------------------------------------

    Attachment: 20121128_profileLogin_filterByNamedQuery.jpg
                20121128_profileLogin_filterByDynamicSQL.jpg

Attached the following screen captures from Java Visual VM:

"20121128_profileLogin_filterByDynamicSQL.jpg"

No geromino code called


"20121128_profileLogin_filterByNamedQuery.jpg" 

geromino code called; i think geromino = bval

Again, this testing is without validation-mode = NONE in persistence.xml

Next, I would like to analyze getOrderNumberList().
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503652#comment-13503652 ] 

Romain Manni-Bucau commented on OPENEJB-1955:
---------------------------------------------

to check it re-test breaking your app a little bit (but just for the test) -> use applicationscoped for instance to be sure the bean is created only once

btw wonder if you couldn't use an ejb to be sure you use a single transaction by method (maybe in one method you use several transactions so you "loose time")
                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503928#comment-13503928 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Latest per email conversation with Romain:

You mentioned:

about your session management, you should let it be done by the container...or assume results

My response:

Do you agree that TomEE needs to tune it's performance when injecting BeanA and BeanB, when they are both injected into each other, and when BeanA has other beans that also inject BeanA into themselves?

Romain's response:

this kind of injections will be fixed in CDI 1.1 (not JavaEE 6)...and often means a design error....

that's saiid with some scope it shouldn't hurt that much since only proxies are injected
                
> TomEE 1.5.1 SNAPSHOT running slow on my production server; may be caused by Atmosphere
> --------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My JSF web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Per Romain and Mark, I ran jvisualvm, and it appears as though Atmosphere 'may' be slowing down the web app, or the root cause.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507333#comment-13507333 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Interesting, thanks Romain. I was definitely considering that, after reading about it; this is definitely a friendly reminder for me as well. :)
                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENEJB-1955) TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server

Posted by "Howard W. Smith, Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506124#comment-13506124 ] 

Howard W. Smith, Jr. commented on OPENEJB-1955:
-----------------------------------------------

Since I'm using TIKA library, the TIKA's Detector class is added as a private member of my FileHandler class. Below is the definition of the class:


package org.apache.tika.detect;

import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import org.apache.tika.metadata.Metadata;
import org.apache.tika.mime.MediaType;

public interface Detector extends Serializable {

    public MediaType detect(InputStream in, Metadata mtdt) throws IOException;
}


Since this extends Serializable, evidently, this is the reason why TomEE resource logic is called. :(

I didn't plan on keeping TIKA in my app 'forever', but for now, I'll lazily instantiate my FileHandler class.


                
> TomEE 1.5.1 SNAPSHOT (and CDI beans) running slow on my production server
> -------------------------------------------------------------------------
>
>                 Key: OPENEJB-1955
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1955
>             Project: OpenEJB
>          Issue Type: Question
>          Components: container system
>    Affects Versions: 1.6.0
>         Environment: Windows Server 2003, 32-bit, PrimeFaces 3.5 SNAPSHOT, PrimeFaces Push (Atmosphere/websockets) configured;
> Internet connection is powered by Verizon Wireless 4G
>            Reporter: Howard W. Smith, Jr.
>            Priority: Minor
>              Labels: 2003, atmosphere, server, tomee, windows
>             Fix For: 1.6.0
>
>         Attachments: 20121128_profileLogin1_getOrderNumberList.jpg, 20121128_profileLogin1.jpg, 20121128_profileLogin2_getOrderNumberList.jpg, 20121128_profileLogin2.jpg, 20121128_profileLogin3_getOrderNumberList.jpg, 20121128_profileLogin3.jpg, 20121128_profileLogin_filterByDynamicSQL.jpg, 20121128_profileLogin_filterByNamedQuery.jpg, 20121128_profileLogin_initOrdersController1.jpg, 20121128_profileLogin_initOrdersController2.jpg, 20121128_profileLogin_initOrdersController3.jpg, catalina.2012-11-27.log, jvisualvm_20121127.csv, jvisualvm_20121127.html, jvisualvm_20121127.nps, jvisualvm.csv, jvisualvm.html, jvisualvm.nps, jvisualvm_tomee_excel_smaller.csv, jvisualvm_tomee.html, jvisualvm_tomee.nps, jvisualvm_tomee_smaller.csv, jvisualvm_tomee_smaller.html, web.xml
>
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> I was working with Romain and Mark Struberg on this one, and decided to open an issue, so I could attach files and continue discussion here.
> My TomEE/CDI-managed-beans web application is running really slow on production server (Windows Server 2003 32-bit Verizon Wireless 4G internet connection); runs faster on Windows Server 2008 64bit (cablemodem internet connection).
> Currently in production, the Glassfish 3.1.2.2 and JSF-managed-beans version of the web application is running much faster than the TomEE/CDI-managed-beans version of the web application.
> Per Romain and Mark, I ran jvisualvm to provide some benchmarks.
> Please review attached files and confirm and advise.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira