[ 
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

Reply via email to