Major challenges which customers generally face when deploying OpenUI is performance. Below tips can help solve performance issues from web server side.
If you are on Apache web server, you can follow the below settings which you need to do in httpd.conf file. Generally it is placed in /etc/httpd/conf in your server but the path can vary as per your architecture.
You will be required to load the deflate module as this module is not compiled by default. Following code must be there in httpd.conf file :
This code will compress all the files except it will exclude all the files types mentioned above. These files are already compressed and hence, need not be required to compress again.
We have set to compression level 9. But you can select the compression level between 1-9.
To disable entity tags, place the following line of code in your httpd.conf file
To enable this feature, first two apache modules needs to be loaded. Add the below code in httpd.conf file:
Once the modules are loaded, add the below code in your httpd.conf file
You would require to bounce the web-server once changes are done and perform clear cache in your browser. Once that is done, it will start taking these changes.
However to check if these settings are running fine, you need to run a free Google Chrome/Firefox extension : YSlow analyzes web pages and why they're slow based on Yahoo!'s rules for high performance web sites.
Hope the above settings increase your performance for your Siebel OpenUI Application
.
If you are on Apache web server, you can follow the below settings which you need to do in httpd.conf file. Generally it is placed in /etc/httpd/conf in your server but the path can vary as per your architecture.
1. GZip Compression:
GZip compression compresses all the files sent to browser from server which reduces the size of total request and hence, decreasing the loading time.- Step 1: Load the modules
You will be required to load the deflate module as this module is not compiled by default. Following code must be there in httpd.conf file :
1 | LoadModule deflate_module modules/mod_deflate.so |
- Step 2: Once the module is loaded, add the following code in below httpd.conf file:
1 2 3 4 5 6 7 8 | #Set to gzip all output SetOutputFilter DEFLATE #exclude the following file types SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|iso|tar|bz2|sit|rar|png|jpg|gif|jpeg|flv|swf|mp3)$ no-gzip dont-vary #set compression level DeflateCompressionLevel 9 |
This code will compress all the files except it will exclude all the files types mentioned above. These files are already compressed and hence, need not be required to compress again.
We have set to compression level 9. But you can select the compression level between 1-9.
2. Disable Entity Tags
Entity tags are responsible to check whether the version of a particular file on browser matches with the same file on server. If we disable the entity tags, it will stop checking server everytime session loads. This saves lot of http request on server.To disable entity tags, place the following line of code in your httpd.conf file
1 | FileETag None |
3. Expires Headers:
If we disable entity tags then it will stop the sync between server and browser and any new changes on server will not be synced with browser cache. Hence, we will expire headers which will expire the cache stored in the browser and it will fetch the latest files from server cache to browser.To enable this feature, first two apache modules needs to be loaded. Add the below code in httpd.conf file:
1 2 | LoadModule headers_module modules/mod_headers.so LoadModule expires_module modules/mod_expires.so |
Once the modules are loaded, add the below code in your httpd.conf file
1 2 3 4 5 6 7 8 9 10 11 12 | ExpiresActive On <IfModule mod_expires.c> ExpiresByType text/css "access plus 5 days" ExpiresByType text/javascript "access plus 5 days" ExpiresByType image/gif "access plus 5 days" ExpiresByType image/jpg "access plus 5 days" ExpiresByType image/png "access plus 5 days" ExpiresByType application/x-shockwave-flash "access plus 5 days" ExpiresByType application/x-javascript "access plus 5 days" AddType image/x-icon .ico ExpiresByType image/x-icon "access plus 5 days" </IfModule> |
You would require to bounce the web-server once changes are done and perform clear cache in your browser. Once that is done, it will start taking these changes.
However to check if these settings are running fine, you need to run a free Google Chrome/Firefox extension : YSlow analyzes web pages and why they're slow based on Yahoo!'s rules for high performance web sites.
Hope the above settings increase your performance for your Siebel OpenUI Application
.
No comments:
Post a Comment