HTML Preparation code:
x
 
1
<script src="https://cdnjs.cloudflare.com/ajax/libs/hrjs/1.5.2/hr.min.js" integrity="sha512-J9sNw8hL12YJvWRfO2jutnHtrgehuR38DelSIml7OA7xzvFUp+u08CEOJnAalxx/zACbnePG4MRtBh4Zgy7FkQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
2
3
<p id="mytext">Tailing catalina.out<br>----------------------------- <br><script>doS('Tailing catalina.out<br />----------------------------- <br />');</script>    at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:633)<br> at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:611)<br> at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)<br>   at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAsynchronousSocketChannelImpl.java:439)<br>    at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:191)<br>    at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)<br>   at java.base/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:312)<br>    at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)<br>   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)<br>    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)<br>    at java.base/java.lang.Thread.run(Thread.java:836)<br>Caused by: java.net.SocketTimeoutException<br>    at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper.doWrite(Nio2Endpoint.java:1263)<br>    at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:766)<br> at org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:586)<br>   at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:530)<br>   at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:547)<br>  at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:112)<br>   at org.apache.coyote.http11.filters.GzipOutputFilter$FakeOutputStream.write(GzipOutputFilter.java:159)<br>  at java.base/java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)<br>  at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:211)<br>    at java.base/java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:146)<br>    at org.apache.coyote.http11.filters.GzipOutputFilter.doWrite(GzipOutputFilter.java:69)<br>  at org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:194)<br> at org.apache.coyote.Response.doWrite(Response.java:615)<br>    at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:340)<br> ... 83 more<br>11:08:12.297  INFO  business.ContentletIndexAPIImpl - Running Reindex Switchover<br>11:08:12.302  INFO  business.ContentletIndexAPIImpl - -------------------------------<br>11:08:12.302  INFO  business.ContentletIndexAPIImpl - Reindex took        : 31.302s<br>11:08:12.302  INFO  business.ContentletIndexAPIImpl - Switching Server Id : 103187a0-d938-4b19-8ecf-da81f8f52bc1 (this server) <br>11:08:12.302  INFO  business.ContentletIndexAPIImpl - Old indicies        : [working_20220728105922,live_20220728105922]<br>11:08:12.303  INFO  business.ContentletIndexAPIImpl - New indicies        : [working_20220728110741,live_20220728110741]<br>11:08:12.303  INFO  business.ContentletIndexAPIImpl - -------------------------------<br>11:08:12.320  INFO  caffine.CaffineCache - ***    Building Cache : esquerycache, size:10000,Concurrency:32<br>11:08:12.320  INFO  caffine.CaffineCache - ***  Building Cache : esquerycountcache, size:10000,Concurrency:32<br>11:08:12.320  INFO  caffine.CaffineCache - ***     Building Cache : indiciescache, size:8,Concurrency:32<br>11:08:12.320  INFO  caffine.CaffineCache - ***     Building Cache : esquerycache, size:10000,Concurrency:32<br>11:08:12.320  INFO  caffine.CaffineCache - ***  Building Cache : esquerycountcache, size:10000,Concurrency:32<br>11:08:12.321  INFO  business.ContentletIndexAPIImpl - Updating and optimizing ElasticSearch Indexes<br>11:08:12.455  INFO  caffine.CaffineCache - ***  Building Cache : indiciescache, size:8,Concurrency:32<br>11:08:12.504  INFO  caffine.CaffineCache - ***     Building Cache : newnotificationcache, size:1000,Concurrency:32<br>11:08:12.754  INFO  business.ESIndexAPI - Optimizing [cluster_562bcd6170.working_20220728110741, cluster_562bcd6170.live_20220728110741] :2/2 shards optimized<br>11:08:12.850  INFO  delegate.SystemEventsJobDelegate - The event: 1e9227d3-9b49-4774-97ae-aa1a7e9ef1ce, has been skipped on the server: 103187a0-d938-4b19-8ecf-da81f8f52bc1<br>11:08:15.393  INFO  caffine.CaffineCache - ***     Building Cache : esquerycache, size:10000,Concurrency:32<br>11:08:15.394  INFO  caffine.CaffineCache - ***  Building Cache : esquerycountcache, size:10000,Concurrency:32<br>11:08:16.073  INFO  caffine.CaffineCache - ***     Building Cache : indiciescache, size:8,Concurrency:32<br>11:14:16.218  INFO  caffine.CaffineCache - ***     Building Cache : vanityurldirectcache, size:25000,Concurrency:32<br>11:14:16.229  INFO  caffine.CaffineCache - ***  Building Cache : vanityurlsitecache, size:5000,Concurrency:32<br>11:14:17.045  INFO  taillog.TailLogServlet - Requested logFile:/Users/alfredo-li/code/tomcat9/logs/catalina.2022-07-11.log<br>11:14:28.681  INFO  taillog.TailLogServlet - Requested logFile:/Users/alfredo-li/code/tomcat9/logs/catalina.out<br><script>doS('    at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:633)<br />   at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:611)<br />   at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)<br /> at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAsynchronousSocketChannelImpl.java:439)<br />  at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:191)<br />  at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)<br /> at java.base/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:312)<br />  at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)<br /> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)<br />  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)<br />  at java.base/java.lang.Thread.run(Thread.java:836)<br />Caused by: java.net.SocketTimeoutException<br />    at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper.doWrite(Nio2Endpoint.java:1263)<br />  at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:766)<br />   at org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:586)<br /> at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:530)<br /> at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:547)<br />    at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:112)<br /> at org.apache.coyote.http11.filters.GzipOutputFilter$FakeOutputStream.write(GzipOutputFilter.java:159)<br />    at java.base/java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)<br />    at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:211)<br />  at java.base/java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:146)<br />  at org.apache.coyote.http11.filters.GzipOutputFilter.doWrite(GzipOutputFilter.java:69)<br />    at org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:194)<br />   at org.apache.coyote.Response.doWrite(Response.java:615)<br />  at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:340)<br />   ... 83 more<br />11:08:12.297  INFO  business.ContentletIndexAPIImpl - Running Reindex Switchover<br />11:08:12.302  INFO  business.ContentletIndexAPIImpl - -------------------------------<br />11:08:12.302  INFO  business.ContentletIndexAPIImpl - Reindex took        : 31.302s<br />11:08:12.302  INFO  business.ContentletIndexAPIImpl - Switching Server Id : 103187a0-d938-4b19-8ecf-da81f8f52bc1 (this server) <br />11:08:12.302  INFO  business.ContentletIndexAPIImpl - Old indicies        : [working_20220728105922,live_20220728105922]<br />11:08:12.303  INFO  business.ContentletIndexAPIImpl - New indicies        : [working_20220728110741,live_20220728110741]<br />11:08:12.303  INFO  business.ContentletIndexAPIImpl - -------------------------------<br />11:08:12.320  INFO  caffine.CaffineCache - ***    Building Cache : esquerycache, size:10000,Concurrency:32<br />11:08:12.320  INFO  caffine.CaffineCache - ***    Building Cache : esquerycountcache, size:10000,Concurrency:32<br />11:08:12.320  INFO  caffine.CaffineCache - ***   Building Cache : indiciescache, size:8,Concurrency:32<br />11:08:12.320  INFO  caffine.CaffineCache - ***   Building Cache : esquerycache, size:10000,Concurrency:32<br />11:08:12.320  INFO  caffine.CaffineCache - ***    Building Cache : esquerycountcache, size:10000,Concurrency:32<br />11:08:12.321  INFO  business.ContentletIndexAPIImpl - Updating and optimizing ElasticSearch Indexes<br />11:08:12.455  INFO  caffine.CaffineCache - ***  Building Cache : indiciescache, size:8,Concurrency:32<br />11:08:12.504  INFO  caffine.CaffineCache - ***   Building Cache : newnotificationcache, size:1000,Concurrency:32<br />11:08:12.754  INFO  business.ESIndexAPI - Optimizing [cluster_562bcd6170.working_20220728110741, cluster_562bcd6170.live_20220728110741] :2/2 shards optimized<br />11:08:12.850  INFO  delegate.SystemEventsJobDelegate - The event: 1e9227d3-9b49-4774-97ae-aa1a7e9ef1ce, has been skipped on the server: 103187a0-d938-4b19-8ecf-da81f8f52bc1<br />11:08:15.393  INFO  caffine.CaffineCache - ***   Building Cache : esquerycache, size:10000,Concurrency:32<br />11:08:15.394  INFO  caffine.CaffineCache - ***    Building Cache : esquerycountcache, size:10000,Concurrency:32<br />11:08:16.073  INFO  caffine.CaffineCache - ***   Building Cache : indiciescache, size:8,Concurrency:32<br />11:14:16.218  INFO  caffine.CaffineCache - ***   Building Cache : vanityurldirectcache, size:25000,Concurrency:32<br />11:14:16.229  INFO  caffine.CaffineCache - ***    Building Cache : vanityurlsitecache, size:5000,Concurrency:32<br />11:14:17.045  INFO  taillog.TailLogServlet - Requested logFile:/Users/alfredo-li/code/tomcat9/logs/catalina.2022-07-11.log<br />11:14:28.681  INFO  taillog.TailLogServlet - Requested logFile:/Users/alfredo-li/code/tomcat9/logs/catalina.out<br />');</script></p>
Script Preparation code:
 
var log = `Tailing catalina.out<br>----------------------------- <br><script>doS('Tailing catalina.out<br />----------------------------- <br />');</script>    at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:633)<br> at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:611)<br> at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)<br>   at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAsynchronousSocketChannelImpl.java:439)<br>    at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:191)<br>    at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)<br>   at java.base/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:312)<br>    at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)<br>   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)<br>    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)<br>    at java.base/java.lang.Thread.run(Thread.java:836)<br>Caused by: java.net.SocketTimeoutException<br>    at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper.doWrite(Nio2Endpoint.java:1263)<br>    at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:766)<br> at org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:586)<br>   at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:530)<br>   at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:547)<br>  at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:112)<br>   at org.apache.coyote.http11.filters.GzipOutputFilter$FakeOutputStream.write(GzipOutputFilter.java:159)<br>  at java.base/java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)<br>  at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:211)<br>    at java.base/java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:146)<br>    at org.apache.coyote.http11.filters.GzipOutputFilter.doWrite(GzipOutputFilter.java:69)<br>  at org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:194)<br> at org.apache.coyote.Response.doWrite(Response.java:615)<br>    at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:340)<br> ... 83 more<br>11:08:12.297  INFO  business.ContentletIndexAPIImpl - Running Reindex Switchover<br>11:08:12.302  INFO  business.ContentletIndexAPIImpl - -------------------------------<br>11:08:12.302  INFO  business.ContentletIndexAPIImpl - Reindex took        : 31.302s<br>11:08:12.302  INFO  business.ContentletIndexAPIImpl - Switching Server Id : 103187a0-d938-4b19-8ecf-da81f8f52bc1 (this server) <br>11:08:12.302  INFO  business.ContentletIndexAPIImpl - Old indicies        : [working_20220728105922,live_20220728105922]<br>11:08:12.303  INFO  business.ContentletIndexAPIImpl - New indicies        : [working_20220728110741,live_20220728110741]<br>11:08:12.303  INFO  business.ContentletIndexAPIImpl - -------------------------------<br>11:08:12.320  INFO  caffine.CaffineCache - ***    Building Cache : esquerycache, size:10000,Concurrency:32<br>11:08:12.320  INFO  caffine.CaffineCache - ***  Building Cache : esquerycountcache, size:10000,Concurrency:32<br>11:08:12.320  INFO  caffine.CaffineCache - ***     Building Cache : indiciescache, size:8,Concurrency:32<br>11:08:12.320  INFO  caffine.CaffineCache - ***     Building Cache : esquerycache, size:10000,Concurrency:32<br>11:08:12.320  INFO  caffine.CaffineCache - ***  Building Cache : esquerycountcache, size:10000,Concurrency:32<br>11:08:12.321  INFO  business.ContentletIndexAPIImpl - Updating and optimizing ElasticSearch Indexes<br>11:08:12.455  INFO  caffine.CaffineCache - ***  Building Cache : indiciescache, size:8,Concurrency:32<br>11:08:12.504  INFO  caffine.CaffineCache - ***     Building Cache : newnotificationcache, size:1000,Concurrency:32<br>11:08:12.754  INFO  business.ESIndexAPI - Optimizing [cluster_562bcd6170.working_20220728110741, cluster_562bcd6170.live_20220728110741] :2/2 shards optimized<br>11:08:12.850  INFO  delegate.SystemEventsJobDelegate - The event: 1e9227d3-9b49-4774-97ae-aa1a7e9ef1ce, has been skipped on the server: 103187a0-d938-4b19-8ecf-da81f8f52bc1<br>11:08:15.393  INFO  caffine.CaffineCache - ***     Building Cache : esquerycache, size:10000,Concurrency:32<br>11:08:15.394  INFO  caffine.CaffineCache - ***  Building Cache : esquerycountcache, size:10000,Concurrency:32<br>11:08:16.073  INFO  caffine.CaffineCache - ***     Building Cache : indiciescache, size:8,Concurrency:32<br>11:14:16.218  INFO  caffine.CaffineCache - ***     Building Cache : vanityurldirectcache, size:25000,Concurrency:32<br>11:14:16.229  INFO  caffine.CaffineCache - ***  Building Cache : vanityurlsitecache, size:5000,Concurrency:32<br>11:14:17.045  INFO  taillog.TailLogServlet - Requested logFile:/Users/alfredo-li/code/tomcat9/logs/catalina.2022-07-11.log<br>11:14:28.681  INFO  taillog.TailLogServlet - Requested logFile:/Users/alfredo-li/code/tomcat9/logs/catalina.out<br><script>doS('    at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:633)<br />   at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:611)<br />   at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)<br /> at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAsynchronousSocketChannelImpl.java:439)<br />  at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:191)<br />  at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)<br /> at java.base/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:312)<br />  at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)<br /> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)<br />  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)<br />  at java.base/java.lang.Thread.run(Thread.java:836)<br />Caused by: java.net.SocketTimeoutException<br />    at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper.doWrite(Nio2Endpoint.java:1263)<br />  at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:766)<br />   at org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:586)<br /> at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:530)<br /> at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:547)<br />    at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:112)<br /> at org.apache.coyote.http11.filters.GzipOutputFilter$FakeOutputStream.write(GzipOutputFilter.java:159)<br />    at java.base/java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)<br />    at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:211)<br />  at java.base/java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:146)<br />  at org.apache.coyote.http11.filters.GzipOutputFilter.doWrite(GzipOutputFilter.java:69)<br />    at org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:194)<br />   at org.apache.coyote.Response.doWrite(Response.java:615)<br />  at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:340)<br />   ... 83 more<br />11:08:12.297  INFO  business.ContentletIndexAPIImpl - Running Reindex Switchover<br />11:08:12.302  INFO  business.ContentletIndexAPIImpl - -------------------------------<br />11:08:12.302  INFO  business.ContentletIndexAPIImpl - Reindex took        : 31.302s<br />11:08:12.302  INFO  business.ContentletIndexAPIImpl - Switching Server Id : 103187a0-d938-4b19-8ecf-da81f8f52bc1 (this server) <br />11:08:12.302  INFO  business.ContentletIndexAPIImpl - Old indicies        : [working_20220728105922,live_20220728105922]<br />11:08:12.303  INFO  business.ContentletIndexAPIImpl - New indicies        : [working_20220728110741,live_20220728110741]<br />11:08:12.303  INFO  business.ContentletIndexAPIImpl - -------------------------------<br />11:08:12.320  INFO  caffine.CaffineCache - ***    Building Cache : esquerycache, size:10000,Concurrency:32<br />11:08:12.320  INFO  caffine.CaffineCache - ***    Building Cache : esquerycountcache, size:10000,Concurrency:32<br />11:08:12.320  INFO  caffine.CaffineCache - ***   Building Cache : indiciescache, size:8,Concurrency:32<br />11:08:12.320  INFO  caffine.CaffineCache - ***   Building Cache : esquerycache, size:10000,Concurrency:32<br />11:08:12.320  INFO  caffine.CaffineCache - ***    Building Cache : esquerycountcache, size:10000,Concurrency:32<br />11:08:12.321  INFO  business.ContentletIndexAPIImpl - Updating and optimizing ElasticSearch Indexes<br />11:08:12.455  INFO  caffine.CaffineCache - ***  Building Cache : indiciescache, size:8,Concurrency:32<br />11:08:12.504  INFO  caffine.CaffineCache - ***   Building Cache : newnotificationcache, size:1000,Concurrency:32<br />11:08:12.754  INFO  business.ESIndexAPI - Optimizing [cluster_562bcd6170.working_20220728110741, cluster_562bcd6170.live_20220728110741] :2/2 shards optimized<br />11:08:12.850  INFO  delegate.SystemEventsJobDelegate - The event: 1e9227d3-9b49-4774-97ae-aa1a7e9ef1ce, has been skipped on the server: 103187a0-d938-4b19-8ecf-da81f8f52bc1<br />11:08:15.393  INFO  caffine.CaffineCache - ***   Building Cache : esquerycache, size:10000,Concurrency:32<br />11:08:15.394  INFO  caffine.CaffineCache - ***    Building Cache : esquerycountcache, size:10000,Concurrency:32<br />11:08:16.073  INFO  caffine.CaffineCache - ***   Building Cache : indiciescache, size:8,Concurrency:32<br />11:14:16.218  INFO  caffine.CaffineCache - ***   Building Cache : vanityurldirectcache, size:25000,Concurrency:32<br />11:14:16.229  INFO  caffine.CaffineCache - ***    Building Cache : vanityurlsitecache, size:5000,Concurrency:32<br />11:14:17.045  INFO  taillog.TailLogServlet - Requested logFile:/Users/alfredo-li/code/tomcat9/logs/catalina.2022-07-11.log<br />11:14:28.681  INFO  taillog.TailLogServlet - Requested logFile:/Users/alfredo-li/code/tomcat9/logs/catalina.out<br />');</script>`;
Tests:
  • hr

     
    new HR("#mytext", {
        highlight: "Java"
      }).hr();
  • js

     
    var keyword = "Java".toLocaleLowerCase();
    var highlightTagBegin = '<span class="highlightMatch">';
    var highlightTagEnd = "</span>";
    for (let index = 0, len = log.length; index < len; index++) {
        index = log.toLocaleLowerCase().indexOf(keyword, index);
        if (index === -1) {
          break;
        }else{
          // Add initial SPAN tag
          log = log.slice(0, index) + highlightTagBegin + log.slice(index);
          // move index to last position of keyword match
          index = index + highlightTagBegin.length + keyword.length
          // Add ending SPAN tag
          log = log.slice(0, index) + highlightTagEnd + log.slice(index);
        }
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    hr
    js

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
hrjs 3907.3 Ops/sec
js 455485.3 Ops/sec