• 大小: 53.95MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2022-12-03
  • 语言: 其他
  • 标签:

资源简介

大量的并发访问或数据流量分担到多台节点设备上分别处理,减少用户等待响应的时间;其次,单个重负载的运算分担到多台节点设备上做并行处理,每个节点设备处理结束后,将结果汇总,返回给用户,系统处理能力得到大幅度提高。从而提高性能,和吞吐量;但是负载均衡有一个问题就是不同的服务器间进行session共享问题的处理;肯定不可能每分配到一个服务上让用户进行一次登录,这样的用户体验会是极差的;

资源截图

代码片段和文件信息

/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: Apache Tomcat/7.0.52
 * Generated at: 2017-10-18 13:14:05 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class index_jsp extends org.apache.jasper.runtime.HttpJspbase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map _jspx_dependants;

  private javax.el.expressionFactory _el_expressionfactory;
  private org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getexpressionFactory();
    _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
  }

  public void _jspDestroy() {
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType(“text/html;charset=UTF-8“);
      pageContext = _jspxFactory.getPageContext(this request response
       null true 8192 true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write(“\n“);
      out.write(“\n“);
      out.write(“\n“);
      out.write(“  \n“);
      out.write(“    tle>tle>\n“);
      out.write(“  \n“);
      out.write(“  \n“);
      out.write(“ 

TomcatB.test

\n“);
      out.write(“    \n“);
      out.write(“      \n“);
      out.write(“        Session ID\n“);
      out.write(“    “);
 session.setAttribute(“test““test“); 
      out.write(“\n“);
      out.write(“        “);
      out.print( session.getId() );
      out

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      28710  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\bootstrap.jar

     文件       2168  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\catalina-tasks.xml

     文件      13139  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\catalina.bat

     文件      20779  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\catalina.sh

     文件     204944  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\commons-daemon-native.tar.gz

     文件      24283  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\commons-daemon.jar

     文件       2064  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\configtest.bat

     文件       1922  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\configtest.sh

     文件       1278  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\cpappend.bat

     文件       7884  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\daemon.sh

     文件       2115  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\digest.bat

     文件       1965  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\digest.sh

     文件       6157  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\service.bat

     文件       3195  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\setclasspath.bat

     文件       3459  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\setclasspath.sh

     文件       2044  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\shutdown.bat

     文件       1902  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\shutdown.sh

     文件       2046  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\startup.bat

     文件       1904  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\startup.sh

     文件    1589760  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\tcnative-1.dll

     文件      38712  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\tomcat-juli.jar

     文件     286622  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\tomcat-native.tar.gz

     文件     103936  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\tomcat7.exe

     文件     104448  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\tomcat7w.exe

     文件       4045  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\tool-wrapper.bat

     文件       5024  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\tool-wrapper.sh

     文件       2050  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\version.bat

     文件       1908  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\bin\version.sh

     文件      12505  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\conf\catalina.policy

     文件       6373  2014-02-13 10:29  tomcat-clustering\tomcat-clustering-1\conf\catalina.properties

............此处省略729个文件信息

评论

共有 条评论