• Save
Speed up your XPages Application performance
Upcoming SlideShare
Loading in...5
×
 

Speed up your XPages Application performance

on

  • 1,424 views

Webinar on XPages Application performance enhancements

Webinar on XPages Application performance enhancements

Statistics

Views

Total Views
1,424
Views on SlideShare
1,424
Embed Views
0

Actions

Likes
1
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • General Agenda:We will discuss about the need for performance in Application Modernisation (discussed in next) just to have a general intro),
  • When we are working on Application Modernisation and you are rolling out the first Xpages app, deployment/maintenance is very critical for success. The roadmap for subsequent modernisation depends on solely on the success of the first app. In which performance plays a major role in user adoption. Performance can be a major challenge, if not addressed properly both at the server level and application.
  • There are various affect the affect/influenze the application Performance. Listed are some of them. Discuss abt eachServer capacity – If recommended hardware/software is not provided for the domino server, performance may be affectedHeavy user load – Application should be tuned to work at a higher load, if it is rolled out to a wide user groupWhere server is hosted in a Data center – Network Speed / Latency directly impact the performanceSize of application – App should be optimized to handle heavey applications, that will affect page loading times if not handled properlyCoding – Best practices should be implemented to achieve good performance at different situations
  • These points are discussed in subsequent slides.First we discuss about the server level configurations for perf optimization. Then the application level
  • Recommended H/w and S/w configurationMemory expensive applications should be isolated so that rest of the application do not suffer performance issues. So Traveller should be installed always in a separate server
  • Notes.ini settings that predominantly affect Xpages. We can say about out of memory exceptions, if sufficient memory is not allocated to Heap Size
  • Xsp properties can be set both at the server level and application level. We can say about xsp properties file location (IN Java perspective). Server level applies to all applications on the server. If it is done at the application level, it applies only to that app. Next slide says about specific parameters that is mapping to these points
  • Common issued facing during post production stages in rolling out Xpages app.For Server Time Out – We can bring the example of Hero Security – GatePass Approval. The session need to be alive for the complete shift of the security personnel which may be around – 5-7 hrs. If not set properly, anonymous access in apps could cause issues.For higher page loading points – Listed are some of the points. Sunsequent slides will discuss about fixes for each of the points
  • We can talk about back-end profiling in Xpages tool box that gives a complete picture of an clicked action. Methods used, no. of times it is called and average time taken by them. From here, expensive methods can be identified and optimized
  • Usage of scoped variables prudently – Talk about application/Request/Session scope.We can also touch upon using Managed Beans but that is not the scope and can leave at that
  • Usage of scoped variables prudently – Talk about application/Request/Session scope.We can also touch upon using Managed Beans but that is not the scope and can leave at that
  • Sumup

Speed up your XPages Application performance Speed up your XPages Application performance Presentation Transcript

  • © Maarga Systems Inc., 2012© Maarga Systems Inc., 2012 Maarga Systems
  • © Maarga Systems Inc., 2012 Lakshmi Sankaran Project Lead Maarga Systems http://bit.ly/9mobile
  • © Maarga Systems Inc., 2012  Introduction  Factors affecting performance  Best Practices – Server Level & Application Level  Common Bottlenecks & fixes  Tools to identify common bottle-necks  Q&A
  • © Maarga Systems Inc., 2012  Application Modernization – XPages App Deployment/Maintenance is critical  Server-Level & Application-Level parameters to be properly configured.  Performance a constraint for adoption, if not addressed properly
  • © Maarga Systems Inc., 2012  Server Capacity  User Community and concurrent user load  Network Speed / Bandwidth  Application Heaviness – GBs  Last but not the least – Code Quality.
  • © Maarga Systems Inc., 2012  Recommended H/W & S/W configurations of Server  notes.ini configuration  Xsp properties
  • © Maarga Systems Inc., 2012  OS – A 64 bit OS is recommended  32-bit Domino has limits on setting HTTPJvmMaxHeapSize (<= 512 MB)  Memory - Give Server lots of RAM  More the RAM, more can be the HTTPJvmHeapSize  Isolate heavily used XPages Apps from other memory intensive apps such asTraveller
  • © Maarga Systems Inc., 2012  HttpJVM MaxHeapSize  Set to 1/4th of available RAM  HttpJavaMaxheapSizeSet  Set to 1 to prevent MaxHeapSize from reverting to default value.  Default is 256M for 851 servers, 64M for 852 Servers
  • © Maarga Systems Inc., 2012  Use run-time optimized java script  Configure Server Page persistence to keep pages in memory (small no. of users) and disk (for large users)  Configure appropriate application/session time-out to prevent inactivity http://books.google.co.in/books?id=PWmRO0qrjKUC&pg=PT29&lpg=PT29&dq=sample+xsp+ properties+file&source=bl&ots=M2yUrpIeqF&sig=AcSp4SrcUJEMEluZO_8dDGPtRZk&hl= en&sa=X&ei=dseuUeXQGciVrgfw_oHwBw&ved=0CGgQ6AEwCA
  • © Maarga Systems Inc., 2012  xsp.persistence.mode = fileex  Xsp.persistence.maxviews = 16 ● Server-side control tree caching. Also the related options: ● xsp.persistence.file.maxviews, xsp.persistence.file.gzip, xsp.persistence.file.threshold, xsp.persistence.dir.xspstate  xsp.application.timeout=30min  xsp.session.timeout=30min ● Server timeouts  ibm.jscript.cachesize ● Server-side JavaScript expression cache  xsp.compress.mode=gzip ● Network files are smaller (enabled by default)  xsp.resources.aggregate = true ● Fewer requests for CSS and JS files, aggregated files are cached  xsp.expires.global=10days ● Browser expiration for CSS & JS global files [global == not in application]
  • © Maarga Systems Inc., 2012
  • © Maarga Systems Inc., 2012  Out of Memory Exceptions  Check HttpJVMMaxHeapSize  SessionTime-Outs  Check time-out interval  Higher Load times  Application Size - Check Views, Index Sizes  Lookups  Partial Refreshes  Scoped variables – Application / Request Scopes
  • © Maarga Systems Inc., 2012  Which of the following tools you have used during your development process  XPages tool box  YSlow  Pagespeed  Extended Status Bar  FireBug
  • © Maarga Systems Inc., 2012  XPagesTool Box  Yslow/Page Speed  Firefox Extended Status Bar
  • © Maarga Systems Inc., 2012  Usage of XPagesTool Box  CPU / Memory / Backend Profiling can be done  Backend Profiling –Wealth of information on methods and their usage  Should be used during development/Testing cycles  Production use – Only for critical problem resolution
  • © Maarga Systems Inc., 2012
  • © Maarga Systems Inc., 2012
  • © Maarga Systems Inc., 2012
  • © Maarga Systems Inc., 2012  IncreasingView Index Sizes  Recreate views – DO NOT copy/paste existing Views.They tend to increase sizes  Avoid Duplicate aliases –View indexes get doubled.  Golden Rules  Remove unnecessary Sorting/Styling of columns  Avoid Complex formulas inViews  Avoid @Now or @Today inViews
  • © Maarga Systems Inc., 2012  Free-up memory  Purge Indexes  Compact Db (Copy Style option) and Re-Build Indexes
  • © Maarga Systems Inc., 2012  Optimize usage of DB Lookups/Columns – They are highly expensive  XpagesTool Box comes in Handy – Identify no. of dblookup calls and their places  Use caching of dblookup results
  • © Maarga Systems Inc., 2012  Commonly used in fields.  Check options – Do notValidate or Update data, Process data withoutValidations, Set Partial Execution mode  Disallow user action during Partial Refresh  Using static ‘Loading’ indicator
  • © Maarga Systems Inc., 2012  Optimized usage of Scoped variables  Application Scope  Application level variables that is common to all users can be stored (e.g) – Path of a Lookup DB, Server etc..  Request Scope  Query String related parameters
  • © Maarga Systems Inc., 2012  View Scope  Session Scope  User level information  Employee details – As long as the employee session is active, the information is available to access
  • © Maarga Systems Inc., 2012  Memory leaks are possible when objects are not recycled properly.  Use Recycle() to remove all Domino objects after use. var aView:NotesView = database.getView("SomeViewName"); var doc:NotesDocument = aView.getFirstDocument(); while (doc) { // do some processing on doc doc = aView.getNextDocument( doc );} --------------------------------- (to) ----------------------------------------------------------------------- var vw:NotesView = db.getView("SomeViewName"); var doc:NotesDocument = vw.getFirstDocument(); while (doc) { // do some processing on doc var nextdoc:NotesDocument = vw.getNextDocument( doc ); doc.recycle(); var doc:NotesDocument = nextdoc; }
  • © Maarga Systems Inc., 2012  Need for performance Optimization  Server – Level Parameters  Xsp properties  Application Level changes – Coding Best Practices
  • © Maarga Systems Inc., 2012  http://www.entwicklercamp.de/konferenz/ent2013. nsf/bc36cf8d512621e0c1256f870073e627/815cc2ed1 4d57f39c1257a44002b8b22/$FILE/T4S6- Performance.pdf  http://bruceelgort.files.wordpress.com/2012/05/ad mindev2012_elgort_experttipsandtricks1.pdf  http://xpageswiki.com/web/youatnotes/wiki- xpages.nsf/dx/Memory_Usage_and_Performance
  • © Maarga Systems Inc., 2012
  • © Maarga Systems Inc., 2012 ThankYou