Inconsistent results when testing oscache with JMeter

View: New views
1 Messages — Rating Filter:   Alert me  

Inconsistent results when testing oscache with JMeter

by Dougal McRae :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello,

 

I’m getting inconsistent results when testing my oscache implementation with JMeter. Only one time did it appear to work, with a speed improvement averaging about 40% when accessing two web pages which use the code. The rest of the time the results are about the same or slightly worse than the response time with no oscache implementation. I believe I have followed the instructions in the installation guide correctly.

 

What I’ve done:

- I am using the default settings in oscache.properties i.e. everything uncommented, and the file is correctly going to the WEB-INF/classes/ folder

- The oscache*.jar file is correctly going to the WEB-INF/lib/ folder.

- I have put the required taglib into my .jsp file, and am using just the default <cache> tag.

 

I am getting two error message in my code, though another developer here said this shouldn’t be a problem:

1) For  <%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %> I’m getting: “Cannot find the tag library descriptor for http://www.opensymphony.com/oscache

2) For the <cache> </cache> tags I’m getting: “Unknown tag (cache).”

 

I’m not sure if I’m missing something or what. Thanks for any help.

 

My .jsp code  is below:

 

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<%@ taglib uri="/WEB-INF/mpi.tld" prefix="mpi"%>

 <%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>

 

<%@ page import="com.michaelpage.MP3Constants, fr.michaelpage.util.Utils"%>

 

<html:xhtml />

 

<logic:present name="<%=MP3Constants.BANNERJOB_LIST%>">

 

<cache>

 

<div id="featured_clients_container">

      <div id="featured_clients_header">

            <h2><bean:message bundle="tiles" key="tiles.pushright.featuredjobs" /></h2>

            <div id="featured_clients_top_right"></div>

      </div>

      <div id="list_container">

            <span id="inner_container">

 

                  <logic:iterate id="pushjob" name="<%=MP3Constants.BANNERJOB_LIST%>" scope="request" type="fr.michaelpage.job.beans.JobBean">

     

                        <%// Logo Path

                        String sPathLogo = MP3Constants.LOGO_PATH + pushjob.getFilename();

                        %>

     

                        <p>

                              <logic:notEqual name="pushjob" property="filename" value="">

                               <mpi:link href='<%=pushjob.getJobAdUrl()%>' ac='<%=pushjob.getRef() + "_F" %>'>

                                          <html:img src="<%=sPathLogo%>" alt="" />

                                 </mpi:link>

                              </logic:notEqual>

                              <br />

                              <span class="job_title">

                               <mpi:link href='<%=pushjob.getJobAdUrl()%>' ac='<%=pushjob.getRef() + "_F" %>'>

                                          <bean:write name="pushjob" property="title" />

                                 </mpi:link>

                              </span>

                              <br />

                              <span class="job_info">

                                    <bean:write name="pushjob" property="localisation" />

                              </span>

                        </p>

                  </logic:iterate>

 

            </span>

      </div>

      <div id="featured_clients_footer">

            <div id="featured_clients_footer_right">&nbsp;</div>

      </div>

</div>

 

</cache>

 

</logic:present>