This blog explains about learning/findings/experiences & Interesting features of Oracle Application Development Framework(ADF) , part of Oracle Fusion Middleware Technologies.
Tuesday, June 3, 2014
Monday, June 2, 2014
How to use Oracle Diagnostic Log Analyzer ?
This blog explains about how to use Oracle Diagnostic Log analyzer in order to monitor the performance of each request and life cycle of ADF and JSF .
- Right click on 'Integrated Weblogic Server' as shown below and choose 'configure.....'
- Set the Log level to 'FINEST' for oracle.adf , In order to see the detailed logs for ADF application.
- Tools->Oracle Diagnostic Log Analyzer
- Search based on given query
Thursday, May 29, 2014
XMLStreamException: End Document reached prematurely
If you notice below error while launching your integrated weblogic server, Try to delete the corrupted system-jazn file from the below location and replace with correct one.
C:\Users\user\AppData\Roaming\JDeveloper\system11.1.1.6.38.62.29\DefaultDomain\config\fmwconfig
- Please download this attached system-jazn.xml file - Sample System Jazn XML
or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug= jpspolicy to get more information. Error message: Cannot read from policy store. Reason is PolicyStore Error, javax.xml.stream. XMLStreamException: End Document reached prematurely.
at weblogic.security.service. CommonSecurityServiceManagerDe legateImpl.loadOPSSPolicy( CommonSecurityServiceManagerDe legateImpl.java:1398)
at weblogic.security.service. CommonSecurityServiceManagerDe legateImpl.initialize( CommonSecurityServiceManagerDe legateImpl.java:1018)
at weblogic.security.service. SecurityServiceManager. initialize( SecurityServiceManager.java: 873)
at weblogic.security. SecurityService.start( SecurityService.java:141)
at weblogic.t3.srvr. SubsystemRequest.run( SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps. JpsRuntimeException: Cannot read from policy store. Reason is PolicyStore Error, javax.xml.stream. XMLStreamException: End Document reached prematurely.
at oracle.security.jps.internal. policystore.xml. XmlPolicyStore.buildFromFile( XmlPolicyStore.java:496)
at oracle.security.jps.internal. policystore.xml. XmlPolicyStore.<init>( XmlPolicyStore.java:276)
at oracle.security.jps.internal. policystore.xml. XmlPolicyStoreProvider. getInstance( XmlPolicyStoreProvider.java: 100)
at oracle.security.jps.internal. policystore.xml. XmlPolicyStoreProvider. getInstance( XmlPolicyStoreProvider.java: 74)
at oracle.security.jps.internal. core.runtime. ContextFactoryImpl. findServiceInstance( ContextFactoryImpl.java:139)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps. JpsRuntimeException: javax.xml.stream. XMLStreamException: End Document reached prematurely.
at oracle.security.jps.internal. core.datastore.xml. XmlDataStoreParser. getDataStoreEntryStax( XmlDataStoreParser.java:166)
at oracle.security.jps.internal. core.datastore.xml. XmlDataStoreParser. getDataStoreEntry( XmlDataStoreParser.java:180)
at oracle.security.jps.internal. core.datastore.xml. XmlDataStoreParser. getDataStoreEntry( XmlDataStoreParser.java:187)
at oracle.security.jps.internal. core.datastore.xml. XmlDataStore.loadXmlDataStore( XmlDataStore.java:411)
at oracle.security.jps.internal. core.datastore.xml. XmlDataStore.<init>( XmlDataStore.java:276)
Truncated. see log file for complete stacktrace
Caused By: javax.xml.stream. XMLStreamException: End Document reached prematurely.
at oracle.security.jps.internal. policystore.xml. StaxPolicyStoreParser. processPermission( StaxPolicyStoreParser.java: 4801)
at oracle.security.jps.internal. policystore.xml. StaxPolicyStoreParser. processGrant( StaxPolicyStoreParser.java: 4309)
at oracle.security.jps.internal. policystore.xml. StaxPolicyStoreParser. processJaznPolicy( StaxPolicyStoreParser.java: 4253)
at oracle.security.jps.internal. policystore.xml. StaxPolicyStoreParser. processJaznPolicy( StaxPolicyStoreParser.java: 4229)
at oracle.security.jps.internal. policystore.xml. StaxPolicyStoreParser. processAppPolicy( StaxPolicyStoreParser.java: 867)
Truncated. see log file for complete stacktrace
>
<May 29, 2014 11:28:48 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<May 29, 2014 11:28:48 AM CDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<May 29, 2014 11:28:48 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Tuesday, May 27, 2014
Oracle Webcenter Performance Tuning Tips
- Ensure Oracle Coherence is properly configured and working properly
Oracle Coherence Cache - Ensure coherence is enabled, this will reduce significantly performance impact. First time query to UCM get the content and stores in in-memory coherence cache, subsequent calls to UCM will be fetched from coherence cache rather than calling UCM
ADF Client State Token - This value controls the number of pages user can navigate to back without loosing the page state. To reduce the CPU and memory usage decrease this value in web.xml
<context-param>
<param-name>
org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS
</param-name>
<param-value>
3
</param-value>
</context-param>
JSP Page Time out - This value determines, how long JSP should stay in memory. This frees up resources in situations where some pages are called infrequently. Configure this value in web.xml
<servlet>
<servlet-name>
oraclejsp
<init-param>
<param-name>
jsp_timeout
</param-name>
<param-value>
600
</param-value>
</init-param>
HTTP Session Timeout : This determines how long you want to keep the HTTPSession object alive, This value can be configured in web.xml. Higher the value lead to consume more CPU and memory. Configure this value based on nature of the user accessing your application. If users stays on the application for lesser amount of time, then reduce the value.
<session-timeout> 15 </session-timeout>
ADF View State Compression : By setting 'false' to this ,all non-current view states are compressed before saving in memory, which reduces the heap usage. This value can be configured in web.xml<context-param>
<param-name> org.apache.myfaces.trinidad.COMPRESS_VIEW_STATE
</param-name>
<param-value> false </param-value>
</context-param>
MDS Cache Size : By default, MDS cache size is 100 MB, if you notice any error in logs such as JOC region is full, then increase this value to maximum in adf-config.xml
<cache-config> <max-size-kb>150000</max-size-kb> </cache-config>
MDS Purge Rate : This value will determine to remove older versions meta data automatically every hour. By default, this value is -1, that means no purge. Set the appropriate value based on nature of the application. This can be done by configuring adf-config.xml
<auto-purge seconds-to-live="3600"/>.
Optimizing Cache invalidation
Set Cache Invalidation Interval(Minutes) value to '0' , This can be done by editing Content Repository connection using Enterprise Manager
Follow below link to edit 'Content Repository Connection using EM' : http://fortunefusionminds.blogspot.com/2014/06/how-to-manage-content-repository.html
Set 'expiry-delay' to zero in 'content-coherence-cache-config.xml'
<local-scheme>
<scheme-name>ContentNodeCaches</scheme-name>
<expiry-delay>0</expiry-delay>
<high-units>800</high-units>
</local-scheme>
- Ensure to have below entry in 'httpd.conf' file in OHS
LoadModule deflate_module "${ORACLE_HOME}/ohs/modules/mod_deflate.so"
- Reduce the image file size as much as possible. This will significantly improve the performance.
- Define linkCaching.properties file and have below two entries in it
oracle.webcenter.content.integration.spi.ucm.linkConversion=false
oracle.webcenter.content.integration.spi.ucm.suppressGetFileUrl=on
- Edit the setDomainEnv.sh (both mserver & aserver) and append below entry at the end of this file
CLASSPATH="${CLASSPATH}${CLASSPATHSEP}${DOMAIN_HOME}"
Ref : Oracle Webcenter Portal Performance Tuning Tips
http://docs.oracle.com/cd/E27559_01/doc.1112/e28552/webcenter.htm
http://www.ateam-oracle.com/webcenter-11-1-1-8-performance-analysis-feature/
http://docs.oracle.com/cd/E28280_01/webcenter.1111/e12405/wcadm_performance.htm#WCADM12056
http://www.oracle.com/technetwork/articles/enterprise2/zheng-webcenter-perf-1-1927402.html
Saturday, May 24, 2014
How to install JMeter
What is JMeter ?
JMeter is not a browser. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers.
Download Lin k : http://jmeter.apache.org/download_jmeter.cgi
- Download .zip file, copy to your Windows machine C directory and extract it.
- Open Command prompt, Locate to %PATH% /apache-jmeter-2.11\bin directory
- Run Jmeter.bat command
If you notice any errors related to JDK class path, Create a system environment variable as shown below
- Open new command prompt, and run the JMeter.bat,
- If you notice any heap size related errors then modify jmeter.bat as shown below
set HEAP=-Xms1024m -Xmx1024m
- Upon successful configuration of JDK , you should see JMeter window as shown below
Thursday, May 22, 2014
How to see the Trace , Logs and UCM Query response time related information in UCM ?
This blog outlines about how to see logs related information in UCM ?
- Login to Oracle Content Server
- Expand 'Administration' , Choose 'Server Audit Information'
- Choose respective tracing available options from drop down as shown below, Select 'Save' option, Click on 'Update'
Eg : requestaudit, search*, systemdatabase
- Click on 'View Server Output' button as shown below
- This is how you see logs
Thank you for browsing !!!
Subscribe to:
Posts (Atom)
