当前位置:网站首页>Misunderstanding of tongweb due to ease of use

Misunderstanding of tongweb due to ease of use

2022-06-13 05:45:00 t007321

Mistake 1 : Use TongWeb Enterprise version , Namely, in accordance with the 《TongWeb7 Enterprise user manual .pdf》 Manual operation .

Install well TongWeb after doc There are manuals under the catalogue ,TongWeb Correct viewing order of the manual :

1. First look 《TongWeb7 Quick use manual .pdf》 Understand the basic installation 、 Use .

2. Look again 《TongWeb7 User manual .pdf》 The manual describes the single machine console Console .

3.TongWeb The enterprise version provides console and heimdall Two management consoles , On trial 、 The migration test phase uses console Stand alone console . Configure the cluster 、 Unified management of all TongWeb Available when node heimdall Console .

4.《TongWeb7 Enterprise user manual .pdf》 The manual describes heimdall Console .

5. with TongHttpServer(THS) For clusters, see 《TongHttpServer User's Manual .pdf》.  Cluster in heimdall The console can be equipped with , Manual configuration is also possible .

Mistake 2 : stay Linux Next use ./startserver.sh start-up TongWeb, This causes when ssh The tool is disconnected from Linux After connecting ,TongWeb Process exit .

Use it correctly : adopt TongWeb  bin In the catalog   ./startservernohup.sh or   nohup  ./startserver.sh &  start-up TongWeb, This is for background startup .

Mistake 3 : With nohup start-up TongWeb after ,bin Under the nohup.out The files are getting bigger .

Use it correctly : Close at the console nohup Log output .

Error 4 : ask TongWeb How memory is managed 、 Released ?

Positive solution :TongWeb It's not management JVM In memory , All memory control is controlled by JVM To manage .TongWeb All you can do is rely on -Xms 、 -Xmx 、 -Xmn 、 -XX:MaxPermSize 、-XX:+UseConcMarkSweepGC etc. JVM Self parameter , Adjust its memory size and garbage collection strategy .JVM Although memory can be recycled automatically , But that doesn't mean the program doesn't have to care about memory . If the object is useless , But it has been quoted , JVM It can't be recycled . Garbage collection cannot clean up memory , Cause memory to run out , therefore OutOfMemoryError The problem arises . Be careful :JVM Memory is not the bigger the better , Many operation and maintenance personnel try their best to set the memory large when memory problems occur , This will not solve the fundamental problem , The important thing is to see GC,Full GC Less performance is better .

Mistake 5 :TongWeb How to configure a cluster 、 Load balancing ?

Positive solution :TongWeb It does not provide load balancing function , It comes with it TongHttpServer(THS) Software to achieve . In addition, Dongfang Tong Hardware load equipment can also be used TongADC、 Open source Apache、 nginx、 Haproxy  Other configuration TongWeb colony .session Replication is done through TongDataGrid To complete , Not like it tomcat+redis The way .

Error 6 : Put the application package in deployment Can I just like tomcat  Same automatic deployment ?

Use it correctly :TongWeb Is to put the application package in autodeploy Under the table of contents , Automatic decompression in deployment In the catalog . Not like tomcat It's in the present webapps Decompress in the directory .

Mistake 7 : After updating the application file , stay TongWeb Click stop... On the console 、 The app does not update after startup .

Use it correctly : start-up 、 Stop just allows or disallows access to the application , The app will not be updated , This is related to weblogic Different functions ,TongWeb Application uninstallation will not be performed , Loading process . To update the app, click “ Redeployment ”.

Eight mistakes : Do not modify the special machine version startserver.sh、stopserver.sh、conf Next environment etc. shell file , Once modified, it is not allowed to execute , Can only be refitted TongWeb. If the startup parameters are modified , Can only be changed bin Next external.vmoptions file . It is newly created under the special machine domain Of bin The startup script in the directory does not have executable permission , Need to be TongWeb root directory bin Under the    ./startdomain.sh  domain name     Mode start .

Mistake nine :TongWeb  Of 8005 Port not found , Console not found ,tongweb.xml I can't find it in the library .

Use it correctly : Only directly in tongweb.xml  Of <server Add red information to the label  <server shutdown-port="8015" jsf="false"> ,  The default is not 8005, Generally, I don't know , Is it a design that lacks humanization ?

Error 10 : During installation, please put TongWeb The performance is adjusted to the most 、 most 、 The optimal  ; TongWeb How much concurrency can it support 、 How many servers are needed to meet the demand ?

Positive solution : Initial installation TongWeb Usually adjust the system open files value 、JVM Memory value 、 Number of threads 、 Data source connection configuration , Do a basic tuning . These values do not have a fixed optimal value , Each application system software 、 The hardware environment is different , Different visits , The optimization method is different . No software will directly provide an optimal value , But they will provide corresponding optimization methods , It is important to master the optimization method . 

The performance of the application system depends on the software / Hardware configuration , Hardware such as :CPU、 Memory 、 network bandwidth . Software such as : operating system 、 middleware 、 database 、 More important is the architecture design of the application system . Evaluating the performance of an application system depends on the software / Comprehensive capability of hardware , Not without any preconditions , Evaluated TongWeb You need several servers and concurrency .  TongWeb Some project performance processing capabilities can be provided for reference .

It's like buying a car , You can't judge the speed just by looking at the engine 、 slow . The new car is not the best to drive from the beginning , It will take a period of running in , To achieve the best performance .

Myth 11 :  We can buy enough TongWeb Embedded version , Field installation is required .

reply : TongWeb Embedded version is jar  file , No installation required .  The future lies in Spring Boot On the classpath of , Together with the application jar Document to java -jar Run in the form of , So there's no need to install , No special machine installation package is required . I will never know TongWeb Where is it used .

Myth 12 : The application system is slow 、 There are abnormal , restart TongWeb Just fine , So it is TongWeb The problem of .

reply :TongWeb The same as the application JVM Sharing resources in the process , So if something goes wrong, restart TongWeb after ,TongWeb The resources associated with the application will be cleaned up and rebuilt .  This method can restore the application , But it does not mean TongWeb problem . Just like when a computer 、 When the mobile phone is not easy to use , Restart the machine to solve the problem , But it is not certain which side is soft 、 Caused by hardware .

The following log : The application uses open source data sources , Full data source connections cause slow application access , Just restart TongWeb, The open source data source of the application will be cleared , The system will recover naturally . There are also problems such as memory overflow , Just restart TongWeb All can be solved , But it does not mean that the memory overflow is TongWeb Caused by the .

java.sql.SQLTransientConnectionException: DatebookHikariCP - Connection is not available, request timed out after 30000ms.
    at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:548)
    at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:186)
    at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:145)
    at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:99)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)

Myth 13 :TongWeb7 There is no database type we need in the data source configuration .

reply : The database type is just for the convenience of the later “ Database driver class name ” and " Connect url" Fill in , If there is no corresponding database type , Choose one and change it “ Database driver class name ” and " Connect url" that will do .  Also available at applications\console\WEB-INF\classes\jdbc\data-type-config.xml Add database types manually in .  before TongWeb5 You can add database types to the console .

Myth 14 : If the production system has performance problems, you need to use TongAPM Analyze

reply :TongAPM Only suitable for use in a test environment , There is no persistence function , Therefore, performance logs cannot be tracked for a long time , restart TongWeb The log will disappear after . Recommend a small tool :TProfiler.

Misunderstanding 15 :TongWeb What is the priority of the shared library path configuration ?

reply :TongWeb The shared library paths of are configured as follows :

1. ${TongWeb_Base}\lib\endorsed  The directory has the highest priority ( first JDK Self class ),  Dependent parameters :-Djava.endorsed.dirs=${JAVA_ENDORSED_DIRS}

2. ${TongWeb_Base}\lib Catalog , Often used for storage JDBC Drive class , Other shares jar It is not recommended to put .

3. ${TongWeb_Base}\lib\classes、${TongWeb_Base}\lib\common、assets.xml The corresponding console shared library , The priority of these three configurations , And with war application ,ear application /APP-INF Priority of the directory 、 Priority under parent-child load ,  God knows , Have a try. .

Myth 16 :TongWeb State secret certificate is required

reply :1.TongWeb Enterprise Edition 、 The standard version 、 The lightweight version cannot be configured with state secrets , To pass the TongHttpServer(THS) To configure the state secret certificate . 2.   TongWeb Embedded version 、 The container cloud version can directly configure the state secret certificate .  State secret production tools :GMSSL - National secret SSL laboratory

原网站

版权声明
本文为[t007321]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202280507590842.html