当前位置: 首页 > news >正文

专业做招聘的网站有哪些长沙做模板网站

专业做招聘的网站有哪些,长沙做模板网站,搭建网站宣传,有创意的网络公司名字大全1、修改启动时内存参数、并指定JVM时区 #xff08;在windows server 2008 下时间少了8个小时#xff09;在Tomcat上运行j2ee项目代码时#xff0c;经常会出现内存溢出的情况#xff0c;解决办法是在系统参数中增加系统参数#xff1a; window下#xff0c; 在catalina.b… 1、修改启动时内存参数、并指定JVM时区 在windows server 2008 下时间少了8个小时在Tomcat上运行j2ee项目代码时经常会出现内存溢出的情况解决办法是在系统参数中增加系统参数 window下 在catalina.bat最前面 set JAVA_OPTS-XX:PermSize64M -XX:MaxPermSize128m -Xms512m -Xmx1024m 一定加在catalina.bat最前面。linux下在catalina.sh最前面增加JAVA_OPTS-XX:PermSize64M -XX:MaxPermSize128m -Xms512m -Xmx1024m -Duser.timezoneAsia/Shanghai注意前后二者区别有无set有无双引号。2、线程池配置Tomcat6下使用线程池用较少的线程处理较多的访问可以提高tomcat处理请求的能力。使用方式首先。打开/conf/server.xml增加Executor nametomcatThreadPool namePrefixcatalina-exec-maxThreads500 minSpareThreads20 maxIdleTime60000 /最大线程500一般服务器足以最小空闲线程数20线程最大空闲时间60秒。然后修改Connector ...节点增加executor属性如:Connector executortomcatThreadPoolport80 protocolHTTP/1.1connectionTimeout60000keepAliveTimeout15000maxKeepAliveRequests1redirectPort443....../注意可以多个connector公用1个线程池。3、调整连接相关Connector的参数Connector executortomcatThreadPoolport80 protocolHTTP/1.1connectionTimeout60000keepAliveTimeout15000maxKeepAliveRequests1redirectPort443maxHttpHeaderSize8192 URIEncodingUTF-8 enableLookupsfalse acceptCount100 disableUploadTimeouttrue/参数说明 connectionTimeout - 网络连接超时单位毫秒。设置为0表示永不超时这样设置有隐患的。通常可设置为30000毫秒。 keepAliveTimeout - 长连接最大保持时间毫秒。此处为15秒。 maxKeepAliveRequests - 最大长连接个数1表示禁用-1表示不限制个数默认100个。一般设置在100~200之间 the maximum number of HTTP requests that can be held in the pipeline until the connection is closed by the server. Setting this attribute to 1 disables HTTP/1.0 keep-alive, as well as HTTP/1.1 keep-alive and pipelining. Setting this to -1 allows an unlimited number of pipelined or keep-alive HTTP requests. If not specified, this attribute is set to 100. maxHttpHeaderSize - http请求头信息的最大程度超过此长度的部分不予处理。一般8K。 URIEncoding - 指定Tomcat容器的URL编码格式。 acceptCount - 指定当所有可以使用的处理请求的线程数都被使用时可以放到处理队列中的请求数超过这个数的请求将不予处理默认为10个。defines the maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full are refused. The default value is 10. disableUploadTimeout - 上传时是否使用超时机制 enableLookups - 是否反查域名取值为true或false。为了提高处理能力应设置为false bufferSize - defines the size (in bytes) of the buffer to be provided for input streams created by this connector. By default, buffers of 2048 bytes are provided. maxSpareThreads - 做多空闲连接数一旦创建的线程超过这个值Tomcat就会关闭不再需要的socket线程 the maximum number of unused request processing threads that are allowed to exist until the thread pool starts stopping the unnecessary threads. The default value is 50. maxThreads - 最多同时处理的连接数Tomcat使用线程来处理接收的每个请求。这个值表示Tomcat可创建的最大的线程数。。 the maximum number of request processing threads to be created by this Connector, which therefore determines the maximum number of simultaneous requests that can be handled. If not specified, this attribute is set to 200. minSpareThreads - 最小空闲线程数Tomcat初始化时创建的线程数 the number of request processing threads that are created when this Connector is first started. The connector will also make sure it has the specified number of idle processing threads available. This attribute should be set to a value smaller than that set for maxThreads. The default value is 4. minProcessors - 最小空闲连接线程数用于提高系统处理性能默认值为10。用于Tomcat4中 maxProcessors - 最大连接线程数即并发处理的最大请求数默认值为75。用于Tomcat4中 备注Tomcat4中可以通过修改minProcessors和maxProcessors的值来控制线程数。在Tomcat5主要对以下参数调整 maxThreadsTomcat使用线程来处理接收的每个请求。这个值表示Tomcat可创建的最大的线程数。acceptCount指定当所有可以使用的处理请求的线程数都被使用时可以放到处理队列中的请求数超过这个数的请求将不予处理。connnectionTimeout网络连接超时单位毫秒。设置为0表示永不超时这样设置有隐患的。通常可设置为30000毫秒。minSpareThreadsTomcat初始化时创建的线程数。maxSpareThreads一旦创建的线程超过这个值Tomcat就会关闭不再需要的socket线程。 4、负载均衡、集群的配置Tomcat6支持分布式部署可以实现集群功能提高响应能力。5、利用JMX监控Tomcat运行情况需要手工调整启动参数如下打开cataline.bat增加一行set JAVA_OPTS%JAVA_OPTS% -Dcom.sun.management.jmxremote.port10090 -Dcom.sun.management.jmxremote.sslfalse -Dcom.sun.management.jmxremote.authenticatefalse -Djava.util.logging.managerorg.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file%CATALINA_BASE%\conf\logging.propertieslinux下修改cataline.sh: JAVA_OPTS-Dcom.sun.management.jmxremote.port10090 -Dcom.sun.management.jmxremote.sslfalse -Dcom.sun.management.jmxremote.authenticatefalse -Djava.util.logging.managerorg.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file%CATALINA_BASE\conf\logging.properties注意JDK\jre\lib\management\management.properties文件必须存在。重新启动tomcat节点然后用jconsole连接此处端口wei100906、Tomcat增加一个应用在server.xml的Host标签中增加行Context displayNameOA docBase/app/web-apps/GACWP path /path代表上下文名称空表示是根路径。转载地址http://blog.sina.com.cn/cchao06   版权声明本文为博主原创文章未经博主允许不得转载。 转载于:https://www.cnblogs.com/weiguo21/p/4824021.html
http://www.huolong8.cn/news/320646/

相关文章:

  • 贵阳网站制作免费wordpress 直排主题
  • 微信公众号商城网站开发有好的网址推荐吗
  • 资阳市住房和城乡建设局网站做搜狗手机网站
  • 宁波做网站优化公司建行门户网站
  • 网站建设教程浩森宇特wordpress 支持pdf
  • 将二级域名 网站目录网站 技术
  • 专业网站设计联系电话wordpress 自定义菜单
  • 网站多久才能做起来有没有房建设计的网站
  • 山西公司怎么做网站成都便宜网站建设
  • 网站分为哪几类做企业网站电话销售话术
  • 西宁网站制作深圳网站seo教程
  • 铜陵做网站微信网站开发流程
  • 网络营销常用工具有哪些?聊城seo优化
  • 东莞建设银行电话号码蚌埠seo
  • 北京怎样在社保网站上做减员南沙网站建设公司
  • 广告推广网站建设软件外包项目网
  • 电子商城 网站开发 支持手机端企业门户网站免费模板
  • 昆明网站做上海网站建设 百家号
  • 哪里做网站便宜公司网站服务费多少钱
  • 网站wap设置长沙网站制作费用
  • 2345网址导航电脑版下载天津优化代理
  • 南京做网站价格ftp上传网站之后怎么做
  • 商业网站建设所用软件动漫网页设计作业
  • dnf做汉堡怎么玩间网站网站解析后显示建设中
  • 网页与网站设计实验总结深圳品牌展会
  • 做网站app要注册哪类商标宁波新闻
  • 网站建设与管理专业是什么酒店网站建设论文
  • 廊坊网站排名方案做网站 服务器
  • 深圳网站建设公司设计公司wordpress白屏问题
  • 企业门户网站建站网站文章来源seo