Verbose GC yog dab tsi?
Verbose GC yog dab tsi?

Video: Verbose GC yog dab tsi?

Video: Verbose GC yog dab tsi?
Video: How do I enable verbose garbage collection (GC) in the WebSphere Application Server console? 2024, Kaum ib hlis
Anonim

Verbose kev txiav ntoo yog npaj los ua thawj lub cuab yeej siv thaum sim kuaj xyuas cov teeb meem khib nyiab; koj tuaj yeem ua qhov kev soj ntsuam ntxaws ntxiv los ntawm kev hu ib lossis ntau dua -Xtgc (trace garbage collector) kab. Nco ntsoov Cov zis tau muab los ntawm - lus hais : gc ua tuaj yeem thiab hloov pauv ntawm kev tso tawm.

Ua li no, verbose GC WebSphere yog dab tsi?

Verbose khib nyiab ( lus GC ) yog qhov chaw nyob hauv Java Virtual Machine configuration ntawm a WebSphere hom neeg rau zaub mov, xws li Deployment Manager lossis Application Server, uas tswj xyuas seb tus neeg rau zaub mov JVM puas yuav sau cov ntaub ntawv pov tseg khib nyiab hauv ib yam tshwj xeeb rau WebSphere Application Server.

Ib sab saum toj no, Kuv yuav ua li cas thiaj li qhib GC log? Enabling GC Logging Koj ua tau qhib GC logging raws li hauv qab no: Nrhiav thiab kho koj /path/to/ds/config/java. Properties file rau DS/OpenDJ piv txwv uas koj xav tau qhib GC Logging . Ua ntej DS 5 nkaus xwb: Ua qhov /path/to/ds/bin/dsjavaproperties program (los yog /path/to/ds/bat/dsjavaproperties.

Ib yam li ntawd, Gc log yog dab tsi?

Cov GC log yog ib qho cuab yeej tseem ceeb heev rau kev nthuav tawm cov peev txheej txhim kho rau cov heap thiab GC configuration los yog cov khoom faib qauv ntawm daim ntawv thov. Rau txhua tus GC tshwm sim, cov GC log muab cov ntaub ntawv qhia tseeb txog nws cov txiaj ntsig thiab lub sijhawm.

Dab tsi yog verbose output hauv Java?

Thaum khiav a Java qhov program, lus cov kev xaiv siv tau los qhia rau JVM yam ntaub ntawv twg los pom. JVM txhawb peb lus kev xaiv tawm ntawm lub thawv. Raws li lub npe qhia, lus hais yog rau kev nthuav qhia cov haujlwm ua los ntawm JVM. Feem ntau cov ntaub ntawv muab los ntawm cov kev txwv no yog siv rau kev debugging lub hom phiaj.

Pom zoo: