Class HealthCheckGeneral


  • public class HealthCheckGeneral
    extends java.lang.Object
    • Field Detail

      • timeToLoadPrincipalBulkCache

        public static final java.util.concurrent.atomic.AtomicLong timeToLoadPrincipalBulkCache
      • timeToLoadGroupBulkCache

        public static final java.util.concurrent.atomic.AtomicLong timeToLoadGroupBulkCache
      • countProblemsOpenConnection

        public static final java.util.concurrent.atomic.AtomicLong countProblemsOpenConnection
    • Constructor Detail

      • HealthCheckGeneral

        public HealthCheckGeneral()
    • Method Detail

      • checkMediaPublicFiles

        public void checkMediaPublicFiles()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkDocumentPublicFiles

        public void checkDocumentPublicFiles()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkLogDebug

        public void checkLogDebug()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkClockEnable

        public void checkClockEnable()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkRunningClocks

        public void checkRunningClocks()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkTenSecDurationClocks

        public void checkTenSecDurationClocks()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkFileManagerConsistency

        public void checkFileManagerConsistency()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkLostEntriesLRResource

        public void checkLostEntriesLRResource()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkMySQLMaxAllowedPacket

        public void checkMySQLMaxAllowedPacket()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkLibVersion

        public void checkLibVersion()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkErrorLog

        public void checkErrorLog()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkCacheEnableTemplates

        public void checkCacheEnableTemplates()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkLock

        public void checkLock()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkProductionEnvironment

        public void checkProductionEnvironment()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkPageNotFound

        public void checkPageNotFound()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkSqlServer

        public void checkSqlServer()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkStyleCache

        public void checkStyleCache()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkThemeDefinitionExists

        public void checkThemeDefinitionExists()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkPortalCacheSize

        public void checkPortalCacheSize()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkWebResourceRenderTime

        public void checkWebResourceRenderTime()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkApacheReadStaticFileFromTomcat

        public void checkApacheReadStaticFileFromTomcat()
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkInterfaceRenderXmlSize

        public void checkInterfaceRenderXmlSize()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkDataBaseLatency

        public void checkDataBaseLatency()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkDataBaseBenchmark

        public void checkDataBaseBenchmark()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkCachedPageStatus

        public void checkCachedPageStatus()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkLanguageConfiguration

        public void checkLanguageConfiguration()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkServersTime

        public void checkServersTime()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDatabaseTime

        protected java.util.Date getDatabaseTime()
      • checkTempFilesOnInstalledModules

        public void checkTempFilesOnInstalledModules()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkWritingAndReadingTimeOnDisk

        public void checkWritingAndReadingTimeOnDisk()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • writeFileOnDisk

        protected long writeFileOnDisk​(IFile file,
                                       byte[] input)
                                throws java.io.IOException
        Method to write a file with the given input array as the content.
        Parameters:
        file - the file.
        input - the input.
        Returns:
        the writing time spent in milliseconds.
        Throws:
        java.io.IOException
        Since:
        11.0.0
      • readFileOnDisk

        protected Tuple2<byte[],​java.lang.Long> readFileOnDisk​(IFile file)
                                                              throws java.io.IOException
        Method to read a file from disk.
        Parameters:
        file - the file.
        Returns:
        a map with the file bytes and the reading time.
        Throws:
        java.io.IOException
        Since:
        11.0.0
      • checkProcessQueueForFailedItems

        public void checkProcessQueueForFailedItems()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkBigDataRepositoryStatus

        public void checkBigDataRepositoryStatus()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkInterfaceDataLoadedVsHTML

        public void checkInterfaceDataLoadedVsHTML()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getMostLowHtmlForBigXml

        protected java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getMostLowHtmlForBigXml()
        Returns the cases that interfaces instances has the minor usage XML Data in your HTML.
        Returns:
        a list with map that container interfaces instances, URL and ratio.
        Since:
        11.2.0
      • getSourceFieldValue

        public static java.lang.Object getSourceFieldValue​(co.elastic.clients.elasticsearch.core.search.Hit<java.util.Map> hit,
                                                           java.lang.String... fieldPath)
        Get value of field path in elasticsearch document.
        Parameters:
        hit - a document hit from elasticsearch search.
        fieldPath - strings that compose a unique field path. For example, suppose that you have a field "user.name", the parameter will be "user" and "name".
        Returns:
        the field value.
        Since:
        11.2.0
      • checkSingleCopyFileLock

        public void checkSingleCopyFileLock()
                                     throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkWaitingTimeInProcessQueue

        public void checkWaitingTimeInProcessQueue()
                                            throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkHDFreeSpace

        public void checkHDFreeSpace()
                              throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkTimeToLoadPrincipalBulkCache

        public void checkTimeToLoadPrincipalBulkCache()
                                               throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkTimeToLoadGroupBulkCache

        public void checkTimeToLoadGroupBulkCache()
                                           throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkCountProblemsOpenConnection

        public void checkCountProblemsOpenConnection()
                                              throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkWebResourcePathClash

        public void checkWebResourcePathClash()
                                       throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkRatioPoolSizeByWebThreads

        public void checkRatioPoolSizeByWebThreads()
                                            throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkFileDownloadControllerHtmlForPublicFilesAccess

        public void checkFileDownloadControllerHtmlForPublicFilesAccess()
                                                                 throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkMassivePageCacheCleaning

        public void checkMassivePageCacheCleaning()
                                           throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkSystemRequirements

        public void checkSystemRequirements()
                                     throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkCollectedUniqueIps

        public void checkCollectedUniqueIps()
                                     throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkMissingIndex

        public void checkMissingIndex()
                               throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkGlobalGroupsAccess

        public void checkGlobalGroupsAccess()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkCustomNavigationTree

        public void checkCustomNavigationTree()
                                       throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkFileSystemClusterMirrored

        public void checkFileSystemClusterMirrored()
                                            throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkOpenFilesULimit

        public void checkOpenFilesULimit()
                                  throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • checkCacheCleaningQueueSize

        public void checkCacheCleaningQueueSize()
                                         throws java.lang.Throwable
        Throws:
        java.lang.Throwable