Skip to main content
Version: v2023.18.0

Monitoring performance

Monitoring ARender performance is done by logging method execution and complementary fields in logs files.

See below an example of log :

Start=1921-01-01 11:02:27,776 || End=1921-01-01 11:02:27,777 || TimeMs=1 || ModuleLoadingTime=227 || DocumentLoadingTime=1084 || User=null || UserAgent=null || Method=ServletDocumentService.notifyOpeningTimes(..) || MimeType=null || DocumentId=b64_I2RlZmF1bHQ= || Result=OK || Exception=null || Args=[227, 1084]

Description of fields

Fields ModuleLoadingTime and DocumentLoadingTime are available since ARender 4.3.0 and above.

Before ARender 4.3.0 : Those fields are retrievable with the field 'args' when field 'method' contains 'notifyLoadingTimes(..)'. The field 'args' is constructed like following : '[moduleLoadingTime, documentLoadingTime]'

FieldDescription
StartStart date of method execution. The date is formatted as yyyy-mm-dd hh-mm-ss.
EndEnd date of method execution. The date is formatted as yyyy-mm-dd hh-mm-ss.
TimeMsMethod execution time in millisecond. This is calculated with End - Start.
ModuleLoadingTimeModule loading time in millisecond. Value is equal to -1 when executed method is ServletDocumentService.notifyOpeningTimes(..).
DocumentLoadingTimeDocument loading time in millisecond. Value is equal to -1 when executed method ServletDocumentService.notifyOpeningTimes(..).
UserUser name of current user. Value is null when username has not been retrieved or if the property arender.server.perf.logger.username.fetch is false.
UserAgentUserAgent of the current user. Value is null when UserAgent has not been retrieved or the property arender.server.perf.logger.useragent.fetch is false.
MethodMethod name that have been executed and where informations are retrieved from.
MimeTypeMimeType of document used in the executed method. Value is equal to null if method is not equal to DocumentServiceMapper.getDocumentLayout(..).
DocumentIdDocumentId of document used in the executed method. Value is equal to null when executed method has no need of a documentId.
DocumentIdRevertedParamsParameters encoded in the documentId. Value is égal to null when property arender.server.perf.logger.document.id.params.fetch is equal to false. Field is not logged if the documentId has no encoded parameters in it.
ResultIndicate if the method have been executed successfully. Value is equal to OK if success and KO if failed.
ExceptionException thrown when there is method execution error. Value is equal to null if no error.
ArgsList of arguments of the method. Arguments are between square brackets and separated by comma.

List of methods logged from rendition :

MethodDescriptionParametersError thrown
alterDocumentContent(..)Used when downloading with annotation, saving or updating a document from the documentBuilderList of DocumentId , AlterContentDescriptionAlterContentOperationException, DocumentNotAvailableException
compareDocuments(..)Used when comparing two documentsleftDocumentId, rightDocumentIdDocumentNotAvailableException
compareImages(..)Used when comparing two imagesdocumentLeft, documentRight, fuzz, highlightColor , lowlightColorDocumentNotAvailableException
convertStampAppearance(..)Used to convert stamp appearances of PDFBox to stamp appearance of ARenderList of AnnotationDocumentNotAvailableException
createPrintablePDF(..)Used at document printing
createPrintablePDFStreamed(..)Used at document printingHttpServletResponse
evict(..)
extractAnnotations(..)Extract annotations from given PDF fileformatType, bytesDocumentNotAvailableException
generateAnnotations(..)Generate FDF annotations from ARender annotations. Used when downloading with annotationformatType, List of AnnotationDocumentNotAvailableException, IOException
generatePDFWithFDFAnnotations(..)Used at document downloading with FDF annotationsList of AnnotationDocumentNotAvailableException, IOException
getAdvancedSearchPageResult(..)Used at advanced search for given pagesearchOptions, pageNumberDocumentNotAvailableException
getAdvancedSearchPagesWithResult(..)Used at advanced search for all pagessearchOptionsDocumentNotAvailableException
getAnnotationAccessor(..)Used when document has annotations
getAnnotationsContainingSearchText(..)Used at search to retrieve a list of annotation containing the searched text in given pageList of Annotation , searchOptions, pageNumberDocumentNotAvailableException
getBookmarks(..)Retrieve bookmarks at document loadingDocumentNotAvailableException
getDocumentAccessor(..)Retrieve document accessor at document loadingDocumentAccessorSelectorDocumentNotAvailableException
getDocumentAccessorContent(..)Retrieve content of the documentDocumentAccessorSelectorDocumentNotAvailableException
getDocumentAccessorController(..)Retrieve document accessor controller
getDocumentDPI(..)Retrieve DPI of a page of a documentDocumentAccessorSelector, pageNumberException
getDocumentLayout(..)Retrieve the document layout at document loadingDocumentNotAvailableException
getDocumentMetadata(..)Retrieve the metadata at document loadingDocumentNotAvailableException
getPageContents(..)Retrieve textual content of the given pagepageNumberDocumentNotAvailableException, PageOutOfRangeException, DocumentFormatNotSupportedException
getPageImageStream(..)Retrieve the image of the given page. Used for thumbnails and displayed pagespageNumber, PageImageDescription, HttpServletResponseDocumentNotAvailableException, DocumentFormatNotSupportedException
getPageResult(..)Retrieve search results for a given pagesearchQuery, pageNumber, searchOptionsDocumentNotAvailableException
getPagesWithResult(..)Retrieve search results for all pagessearchQueryDocumentNotAvailableException
getSize(..)Retrieve document sizeDocumentAccessorSelectorDocumentNotAvailableException
getVideoChunk(..)Retrieve a chunk of a video filestart, length, HttpServletResponseDocumentNotAvailableException, DocumentFormatNotSupportedException, IOException
hasDocument(..)Check is the micro service DFS has the document
loadDocumentAccessor(..)Load a document from his documentAccessorDocumentAccessorDocumentNotAvailableException, DocumentFormatNotSupportedException
loadDocumentAccessor(..)Load a document from his documentAccessor and selectorDocumentAccessor , DocumentAccessorSelectorDocumentNotAvailableException
loadPartialDocument(..)Load a part of the documentcontentBuffer, offset, finishedDocumentNotAvailableException, DocumentFormatNotSupportedException
startLoadPartialDocument(..)Start to load a part of the documentmimeType, documentTitle, contentSizeIOException
uploadDocument(..)Used to upload a document in ARendermimeType, documentTitle, inputStream

List of methods logged from UI :

MethodDescriptionParametersError thrown
alterDocumentContent(..)Used when downloading with annotation, saving or updating a document from the documentBuildersourceDocumentIdList, descriptionAlterContentOperationException, DocumentFormatNotSupportedException, DocumentNotAvailableException
compareDocuments(..)Used when comparing two documentsdocumentIdLeft, documentIdRightDocumentNotAvailableException, DocumentServiceDelegateNotAvailable, DocumentFormatNotSupportedException
compareImages(..)Used when comparing two imagesdocumentIdLeft, documentIdRight, fuzz, highlightColor, lowlightColorDocumentNotAvailableException, DocumentServiceDelegateNotAvailable, DocumentFormatNotSupportedException
convertStampAppearance(..)Used to convert stamp appearances of PDFBox to stamp appearance of ARenderstampAnnotationsDocumentFormatNotSupportedException
createPrintablePDF(..)Used at document printingarenderAnnotationsDocumentNotAvailableException
DownloadServlet.doGet(..)Used at document downloadingmethodName, revertedDocumentIdParameters
evict(..)
extractAnnotations(..)Extract annotations from given PDF filesourceId, formatType, contentsDocumentFormatNotSupportedException
generateAnnotations(..)Generate FDF annotations from ARender annotations. Used when downloading with annotationformatType, arenderAnnotationsDocumentNotAvailableException
generatePDFWithFDFAnnotations(..)Used at document downloading with FDF annotationsarenderAnnotationsDocumentNotAvailableException
getAdvancedSearchPageResult(..)Used at advanced search for given pagesearchOptions, pageNumberDocumentNotAvailableException, DocumentFormatNotSupportedException
getAdvancedSearchPagesWithResult(..)Used at advanced search for all pagessearchOptionsDocumentNotAvailableException
getAnnotationAccessor(..)Used when document has annotationsDocumentNotAvailableException, AnnotationsNotSupportedException
getAnnotationsContainingSearchText(..)Used at search to retrieve a list of annotation containing the searched text in given pageannotations, searchOptions, pageNumberAnnotationsNotSupportedException, DocumentNotAvailableException
getBookmarks(..)Retrieve bookmarks at document loadingDocumentNotAvailableException
getDocumentAccessor(..)Retrieve document accessor at document loadingdocumentAccessorSelectorDocumentNotAvailableException, IOException
getDocumentAccessorContent(..)Retrieve content of the documentdocumentAccessorSelectorDocumentNotAvailableException
getDocumentDPI(..)Retrieve DPI of a page of a documentdocumentAccessorSelector, pageException
getDocumentLayout(..)Retrieve the document layout at document loadingDocumentFormatNotSupportedException, DocumentNotAvailableException
getDocumentMetadata(..)Retrieve the metadata at document loadingDocumentNotAvailableException, DocumentFormatNotSupportedException
getPageContents(..)Retrieve textual content of the given pagepageNumberDocumentNotAvailableException, PageOutOfRangeException, DocumentFormatNotSupportedException
getPageImage(..)Retrieve the image of the given page. Used for thumbnails and displayed pagespage, pageImageDescriptionDocumentNotAvailableException, DocumentFormatNotSupportedException, PageOutOfRangeException, IOException
getPageResult(..)Retrieve search results for a given pagesearchText, pageNumber, searchOptionsDocumentNotAvailableException, DocumentFormatNotSupportedException
getPagesWithResult(..)Retrieve search results for all pagessearchTextDocumentNotAvailableException
getTargetsWeather(..)Used when accessing at arendergwt/weatherisPrettyHtmlPrint
hasCurrentUserParsedDocument(..)Check if the document is available for the current user
loadDocumentAccessor(..)Load a document from his documentAccessordocumentAccessorDocumentNotAvailableException, DocumentFormatNotSupportedException
loadDocumentAccessor(..)Load a document from his documentAccessor and selectordocumentAccessor, documentAccessorSelector
loadDocument(..)Load an already parsed documentdocument
mayProcessAnnotationRendition(..)Try to generate a document with annotationssharedDocumentIdDocumentFormatNotSupportedException
notifyOpeningTimes(..)Used to notify that a document is open and displayed in ARendermoduleLoadingTime, documentLoadingTime
parseLoadingQueryUrl(..)Used when URL using loadingQueryidentifierDocumentNotAvailableException, DocumentFormatNotSupportedException
parseReversibleDocumentId(..)DocumentNotAvailableException, DocumentFormatNotSupportedException
parseURL(..)Parse URL used before trying to execute action like opening a documentapplicationContext, requestDocumentNotAvailableException, DocumentFormatNotSupportedException
PrintServlet.doGet(..)Executed at document printingmethodName, revertedDocumentIdParameters
uploadDocument(..)Used to upload a document in ARendermimeType, documentTitle, inputStream
validateQueryToken(..)Validate if the given token in the request ok or notqueryURL