Setting up Performance Monitor: ATG- Endeca Intergration Experience Manager Performance.
Install Cygwin and install httperf.
https://code.google.com/p/httperf/ --
Configure HttPerf in Cygwin. How to ?? Refer below link
http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/2006-August/000291.html -- this might take some time. Better install all in one shot.[gcc, make …]
Note: If you need to test from your local windows ONLY. [Your can use any Linux/Mac envr if you have httperf installed ]
akg@akg-hp-envy-15-notebook-pc:~$ sudo apt-get install httperf -- from your Unix shell
Enabling Performance Monitoring in your ATG Components
Pre-Check
1. Navigate to /atg/dynamo/admin/en/performance-monitor-config.jhtml
Make the button Enabled to TIME or MEMORY
2. Click [Reset Data]
3. Hit the URLs over the browser (use httperf for load testing)
eg : http://myServer.vci.CustomCatriges.com:8710/mybusiness/b/search/?Ntt=iphone&format=json
http://myServer.vci.CustomCatriges.com:8710/mybusiness/b/search/?Ntt=samsung
4. Navigate to http://<localhost:7001>/dyn/admin/atg/dynamo/admin/en/performance-monitor.jhtml
Enabling Performance Monitor: in your custom catridges, my example below
\CORE\src\com\endeca\infront\cartridge\CustomCatrigesRecordTypeResultsListHandler.java
\CORE\src\com\endeca\infront\cartridge\CustomCatrigesRecordTypeMenuHandler.java
\CORE\src\com\endeca\infront\cartridge\CustomCatrigesRecordTypeResultsListHandler.java
Refer the above classes and cross check those indicators in ATG url in #4.You should be able to see the time in msec.
PerformanceMonitor.startOperation("CustomCatrigesRecordTypeResultsListHandler [preprocess]", "preprocess"); ## Add these indicators - from my code snippet.
PerformanceMonitor.endOperation("CustomCatrigesRecordTypeResultsListHandler [preprocess]", "preprocess");
Also , the ootb components can be cleaned, and compare the Assembler Tools Average execution Time.
Operation Number of Executions Average Execution Time (msec) Minimum Execution Time (msec) Maximum Execution Time (msec) Total Execution Time (msec)
AssemblerTools: invoke assembler 200 2262 121 7797 452472 /mybusiness/search?q=LG
CustomCatrigesRecordTypeResultsListHandler [preprocess] 216 0 0 0 0 /mybusiness/search?q=Refurbished
RecordSpotlightConfig.properties
ResultsListConfig.properties"
A quick write up.
Install Cygwin and install httperf.
https://code.google.com/p/httperf/ --
Configure HttPerf in Cygwin. How to ?? Refer below link
http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/2006-August/000291.html -- this might take some time. Better install all in one shot.[gcc, make …]
Note: If you need to test from your local windows ONLY. [Your can use any Linux/Mac envr if you have httperf installed ]
akg@akg-hp-envy-15-notebook-pc:~$ sudo apt-get install httperf -- from your Unix shell
Enabling Performance Monitoring in your ATG Components
Pre-Check
1. Navigate to /atg/dynamo/admin/en/performance-monitor-config.jhtml
Make the button Enabled to TIME or MEMORY
2. Click [Reset Data]
3. Hit the URLs over the browser (use httperf for load testing)
eg : http://myServer.vci.CustomCatriges.com:8710/mybusiness/b/search/?Ntt=iphone&format=json
http://myServer.vci.CustomCatriges.com:8710/mybusiness/b/search/?Ntt=samsung
4. Navigate to http://<localhost:7001>/dyn/admin/atg/dynamo/admin/en/performance-monitor.jhtml
Enabling Performance Monitor: in your custom catridges, my example below
\CORE\src\com\endeca\infront\cartridge\CustomCatrigesRecordTypeResultsListHandler.java
\CORE\src\com\endeca\infront\cartridge\CustomCatrigesRecordTypeMenuHandler.java
\CORE\src\com\endeca\infront\cartridge\CustomCatrigesRecordTypeResultsListHandler.java
Refer the above classes and cross check those indicators in ATG url in #4.You should be able to see the time in msec.
PerformanceMonitor.startOperation("CustomCatrigesRecordTypeResultsListHandler [preprocess]", "preprocess"); ## Add these indicators - from my code snippet.
PerformanceMonitor.endOperation("CustomCatrigesRecordTypeResultsListHandler [preprocess]", "preprocess");
Also , the ootb components can be cleaned, and compare the Assembler Tools Average execution Time.
Operation Number of Executions Average Execution Time (msec) Minimum Execution Time (msec) Maximum Execution Time (msec) Total Execution Time (msec)
AssemblerTools: invoke assembler 200 2262 121 7797 452472 /mybusiness/search?q=LG
CustomCatrigesRecordTypeResultsListHandler [preprocess] 216 0 0 0 0 /mybusiness/search?q=Refurbished
RecordSpotlightConfig.properties
ResultsListConfig.properties"
No comments:
Post a Comment