the current user, and then install the system again, install myeclipse 8.5 In the new directory.When the system is started, there is a workspaces directory by default, which also points to a directory that does not contain Chinese text. After this startup, no output is reported.
An error has occurred. See error log for more details.107Error message to solve the problem.Appendix: myeclipse 8.5 Startup Process OptimizationMyeclipse5.5: 139 m; myeclipse
When using Nginx as a reverse proxy, the client IP for Tomcat logging is not the real client IP, but the IP of the Nginx agent. To solve this problem, you can configure a new header in Nginx to store the $remote_add, and then Tomcat gets the record of this value.
1.Nginx New configuration:
Proxy_set_header X-real-ip $remote _addr;
See also: Http://wiki.nginx.org/NginxHttpProxyModule
In fact, there
Tomcat 6 configuration official documentation: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html
Configure the
Directory = "logs" prefix = "access_log." suffix = ". ACC" rotatable = "true" filedateformat = "yyyy-mm-dd"
Pattern = "% A % d % T % u % L % S % B % v % P % R" resolvehosts = "false"/>
After Tomcat is started, the default
The job needs to look at the log information, troubleshooting, but in the face of tens of thousands of error logs, from the beginning to look back, a waste of time, all using the tail command will save a lot of time.1. Command Tail-n opt/tomcat/logs/catalina.outWhere-represents from the end to the top, counting; + indicates counting down from the beginningOpt/tomcat
The 1:java SDK has its own logger profile located in the SDK home directory:
Jdk1.6.0_25\jre\lib\logging.properties
2: There are two ways to enable this log configuration
1) with Java-djava.util.logging.config.file=myfile property
Java-djava.util.logging.config.file=myfile Javaclass2 Initialize Logmanager in the program, which also applies to Web projects based on Tomcat
Logmanager Logmanager = Logmanage
/catalina.out "'Popen=subprocess. Popen (command,stdout=subprocess. Pipe,stderr=subprocess. Pipe,shell=True) whileTrue:line=popen.stdout.readline (). Strip () Ws.send (line)Application Front End: logs.html"Init ()">"Log">"msg"Type="textbox"onkeypress="OnKey (Event)"/>"Send ()"> Send Test a piece:Conclusion:Front End--"receiver"--service sideBased on demand use case, casecoding two line parallel, service (M) Consumption (VC) separation, unit, interfac
Do not always look at the information after the start in XXX ms, sometimes when you deploy the project may be wrong?Do this like this, using the Tomcat output error message in more detailCreate a new file named Logging.properties in the Web-inf/classes directory, which reads as follows:handlers =for == ${catalina.base}/= servlet-== Java.util.logging.SimpleFormatterThis will generate a Error-debug.xxx.log file in the logs directory at
= Java.util.logging.SimpleFormatter ############################################################ # Facility specific
Properties.
# provides extra control for each logger. ############################################################ Org.apache.catalina.core.ContainerBase. [Catalina]. [Localhost].level = INFO org.apache.catalina.core.ContainerBase. [Catalina]. [localhost].handlers = 2localhost.org.apache.juli.filehandler org.apache.catalina.core.ContainerBase. [Catalina]. [localhost]. [/manager].
1st Log garbled:JDK Reference set java reference parameter add "-dfile.encoding=utf-8-dsun.jnu.encoding=utf-8"Add the above parameter to the java_opts variable in catalina.sh and restart the Tomcat,ok.If not: Install Chinese language pack yum Groupinstall chinese-supportNo more, check the i18n configuration:/etc/sysconfig/i18nLang= "en_US. UTF-8 "2 Chinese links 404Add uriencoding= "UTF-8" to
View Tomcat logs usually use tail-n or tail-f or grep or VI cat and other commands to see the exception information, but the log is constantly brush screen, tail is dynamic in the change, we often expect from the last line of the Log page forward page to view, so as to find the exception information, The less tool, a tool for distributing display of files or othe
1, install Cronolog# wget # tar xvzf cronolog-1.6.2.tar.gz# cd cronolog-1.6.2 # make # make InstallRunning which cronolog after successful installation will find the corresponding path/usr/local/sbin/cronolog2. Modify the Tomcat catalina.sh fileFind 2 rows in the catalina.sh of the Tomcat Bin directory:Org.apache.catalina.startup.Bootstrap "[email protected]" start \>> "$CATALINA _base"/logs/catalina.out 2>
Open the Tomcat installation path under the Cron/server.xml file, around 135 rows, and add rotatable= "false" to eliminate the date in the file name. 650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7F/BA/wKioL1cq4ffAb6J2AAAnWx2O2d8755.png "title=" Tomcat eliminates name date. png "width=" "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:89px "alt=" Wkiol1cq4ffab6j2aaanwx2
Use Xshell to view the Tomcat real-time log, the Chinese garbled, but the log file in Chinese is not garbled, there may be two reasons, the system may not be set i18n support Chinese, or Xshell encoding format does not support Chinese, the solution is as follows:1. Configuring i18n System filesvi/etc/sysconfig/i18nConfiguration content is as followsLang= "ZH_CN.
CentOS7 the method of intercepting the specified tomcat log to the specified file by time period, many friends are not very clear about this, the following by the footsteps of the small set up for you to explain.
Copy Code code as follows:
Sed-n '/2016-11-02 15:00:/,/2016-11-02 15:05:/p ' catalina.out >/tmp/123/error.txt
The log information in t
Today, the written code is tested on Ubuntu and a few problems are found.
1: Every time svn update source, after the tomcat redeployment log files will disappear ~ ~
View Source Discovery:
Java.util.logging.FileHandler private void Configure () {Logmanager manager = Logmanager.getlogmanager ();
String cname = GetClass (). GetName ();
Pattern = Manager.getstringproperty (CNAME + ". Pattern", "%h/java%u.l
Recently virgo-tomcat always for no reason down, using the following several methods to solve this problem, which method is effective, it is unclear ...1. Delete the large log file below the Home/logs2. Added java_opts= "-xms4096m-xmx4096m-xx:maxpermsize=512m-xx:survivorratio=4-xx to the. bash_profile file: PARALLELGCTHREADS=4-SERVER-VERBOSE:GC "3. Configure the boot method from a child node under the node
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.