Sure vim conf/server.xml, stay # OS specific support.  $var _must_ be set to either true or false. Add below :

JAVA_OPTS="-server -Xms1024m -Xmx6144m -Xss1024K"

This command is mainly used to set Tomcat Run memory size ,Tomcat It's a big memory user , According to the specific requirements of the project .

vim server.xml

<Connector port="16000" protocol="HTTP/1.1"
connectionTimeout="40000"
redirectPort="8443" URIEncoding="UTF-8"
acceptCount="4000" maxThreads="5000"
compression="on" compressionMinSize="2048"
compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"
disableUploadTimeout="true" debug="0"
maxHttpHeaderSize="8192" useBodyEncodingForURI="true" minProcessors="100" maxProcessors="5000"
minSpareThreads="1000" maxSpareThreads="4000" enableLookups="false"/>

This setting enables compression , Set the maximum number of connections .

Tomcat All logs are in logs Under the table of contents , You can check the log to determine where errors are reported .

catalina.out This is the console output , Record running data .

localhost_access_log+ Date this is the record of what IP visit , What to visit .

localhost+ This is the error log . This is also a common log .

manager This is a manager special .

Generally speaking , Get into bin Under the table of contents , perform ./catalina.sh run command , It can be printed directly at the front desk , View error message .

Last , Namely Java The official solution :

Get into jdk Under the table of contents :jdk1.8.0_131/jre/lib/security

vim java.security

find securerandom.source=file:/dev/random Replace it with :securerandom.source=file:/dev/./urandom

Tomcat Web page load speed is too slow solution to more related articles

  1. Yes WEB Standards and W3C Understanding and understanding of - Speed up Web loading

    When writing code, you should pay attention to : 1. Label closed  2. Tag lowercase  3. You can't nest it at will Improve the probability of being found by search engines : mate Medium name Variable [ among keywords and description Especially important ] Meta name= ...

  2. Google Fonts Causes the web page to load the speed to be slow

    Recently, I found that I was loading a html The page is very slow , View discovery yes Google Font Results in slow loading of web pages , If you delete this style, you will find a lot of content errors . On the Internet, baidu found that the problem is : Google Hong Kong (google.co ...

  3. use Flask To write a light blog (28) — Use Flask-Assets Compress CSS/JS Speed up the loading of web pages

    Blog Project source code :https://github.com/JmilkFan/JmilkFan-s-Blog Catalog Catalog Previous list Extended reading Flask-Assets take Flask-Assets application ...

  4. Web Front end performance optimization summary —— How to improve the loading speed of web pages

    One . The need to speed up the loading of web pages The internationally renowned group comes from Jupiter Research Data show that : The dissatisfaction of shoppers in the process of visiting the website will lead to the loss of sales and brand damage , among 77% Will no longer visit the site ,62% People no longer from the net ...

  5. springboot+thymeleaf Dig a hole —— Home page load js/css And so on

    In the use of thymeleaf load css or js style , When we went to the landing page, we found , All styles fail to load . The reason is that there is such a hole in the new edition ……: When we set up addInterceptors- When registering interceptors , Usually ...

  6. On the use of Base64 Encoding the picture to optimize the page loading speed

    We all know the process of loading web pages , Ask from the beginning , Go to load page , Start parsing and displaying web pages , Send the request to the server again when you meet the picture , Loading pictures . If there are a lot of pictures , There will be a lot of http request , This affects the loading speed of the page . So now there's a kind of ...

  7. Web loading speed optimization 2-- Load first css, Then load js file .

    When the web page is loaded , It's from top to bottom , Loaded from left to right . So be sure to load it first css file ( Don't let users see a cluttered page ), Finally load js file ,js It's usually a processing function , So there's no need to load ahead of time . Let's give the user the impression first , And then to the user ...

  8. Huawei glory 7i Manually change DNS, Speed up Web loading

    Why in the same Wi-Fi Under the network , Other people's mobile phones can open web pages in seconds , But my cell phone is always slow or can't open , It's fast . Sometimes the page fails to load . I think most people have . Today I would like to introduce a method to you , Can speed up the opening of web pages ...

  9. stay eclipse Start in tomcat The solution of not loading project

    One . stay server Right click the view and select Add and Remove when , If the project you want to deploy is not in the to be selected list on the left , Or pop up a warning There are no resources that can be added or ...

Random recommendation

  1. Self built storage and using Microsoft Azure、 Comprehensive investigation and analysis of third-party cloud storage such as qiniu

    http://www.cnblogs.com/sennly/p/4136734.html All kinds of cloud services have been hot in the past two years , In addition, it can reduce costs , The company wants to try to use... In some businesses first , Just recently, there is a project with a large number of small files to be saved ...

  2. Scala Singleton object

    Scala Object: scala There are no static modifiers , for example Java Medium static. however Scala Provides Object type ,object The members under are static , More like Java Static class . Difference is that Scala Of ...

  3. Java Interview questions == and equals The difference between

    int and Integer The difference between 1.Integer yes int The wrapper class ,int It is java A basic type of data  2.Integer Variables must be instantiated before they can be used , and int Variables don't need  3.Integer It's actually a reference to the object ...

  4. nginx Of access.log File,

    The fact proved that , Log files are really important, very important . It can help us locate the problem quickly , And know the status of user access , browser ,Ip, Interface address, etc , Absolutely horrible .. One .nginx Of access.log(1) For bloggers , Log files are stored in ...

  5. ntpdata Synchronization time

    ntpdate Used to synchronize time [root@localhost ~]# yum install -y ntp [root@localhost ~]# ntpdate time.windows.com # ...

  6. java.sql.SQLException: Parameter index out of range (3 > number of parameters, which is 2).

    java.sql.SQLException: Parameter index out of range (3 > number of parameters, which is 2). java. ...

  7. uri.php

    <?php /** * */ class URI { function _fetch_uri_string() { if(strtoupper($uri_protocol) == 'AUTO') ...

  8. vue project Use nginx agent

    nginx Is a high-performance HTTP And reverse proxy . Therefore, it is often used as static resource server and back-end reverse proxy server . This article mainly records the use of nginx To deploy and use vue The front-end project to build , Project based on vue Official scaffolding vue-cli structure ...

  9. Aggregate functions 、group by

    Aggregate functions : sql A special function in a language : Aggregate functions ,SUM, COUNT, MAX, MIN, AVG etc. . The fundamental difference between these functions and other functions is that they generally act on multiple records .SELECT SUM(populati ...

  10. Codeforces Round #352 (Div. 1) B. Robin Hood Two points

    B. Robin Hood Topic linking : http://www.codeforces.com/contest/671/problem/B Description We all know the impr ...