No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Slow Response to Requests When the Apache Service Uses Storage Space Mapped Through CIFS

Publication Date:  2013-05-21 Views:  115 Downloads:  0
Issue Description
Product and version information:
 N8500V100R001
 N8500V100R002
 N8500V200R001
The Apache server running Windows 2008 Server uses CIFS storage space from the N8000 for file storage. In the performance test of the Apache's testing tool ab, the performance of the Apache using CIFS space is much lower than that of using iSCSI direct connection.
The following figure shows the test result of the ab testing tool:

Alarm Information
None
Handling Process
Step 1 Optimize the parameter settings on the Apache server.
1. On the Windows 2008 operating system, find the apache2.2/conf/httpd.conf file.
2. Use the Notepad program to open the file and delete the pound signs (#) before three lines, as shown below:
#LoadModule disk_cache_module modules/mod_disk_cache.so

3. Add the following information to the end of the file contents:
<IfModule mpm_prefork_module>
     StartServers          1000
     MinSpareServers       500
</IfModule>

Step 2 Optimize the CIFS service performance on the N8000.
1.Log in to the N8000 as user support.
2.Run vi /opt/VRTSnasgw/conf/smbglobal.conf.
3.Under the line of realm="", add two lines: max_xmit='65535' and max_open_files='65535', as shown in the following figure:

4. Run ! wq command to save data and exit.
5. Run su – master to switch to user master.
6. Run cifs to switch to CIFS mode.
7. Run cifs stop to stop the CIFS service.
8. Run cifs start to start the CIFS service.
Step 3 Right-click My Computer and choose Management > Services and Applications.
Step 4 Find the Apache service. Right-click Apache2.2 and choose Restart.

Step 5 Verify the optimization.
1. Run ab -n 1000 -c 200 http://127.0.0.1/index.htm.
2. Check the command output. As shown in the following figure, the response speed to requests has notably improved.

----End
Root Cause
The parameter settings on the Apache server and the CIFS server are not at their optimum and can be optimized.
Suggestions
None

END