报表页面加载打开非常慢

imagepng

服务部署在内网,报表页面打开非常慢,要 20 秒,但是观察单次调用链路的日志,发现日志全部发生在最后的一秒内,也就是说在前期页面打转这段时间,没有任何日志,报表系统在做什么?为什么慢?
[2023-10-27 08:24:03]
INFO: 生成 HTML 结束……

[2023-10-27 08:24:15]
INFO: 现在计算报表 demo.rpx

[2023-10-27 08:24:15]
DEBUG: CacheManager get report entry

[2023-10-27 08:24:15]
DEBUG: Start reading report entry, Report entry ID: demo.rpx

[2023-10-27 08:24:15]
DEBUG: End reading report entry, Report entry ID: demo.rpx

[2023-10-27 08:24:15]
DEBUG: Start reading report entry, Report entry ID: demo.rpx

[2023-10-27 08:24:15]
DEBUG: End reading report entry, Report entry ID: demo.rpx

[2023-10-27 08:24:15]
INFO: Calculation start,first get data from source……

[2023-10-27 08:24:15]
INFO: print sql:

[2023-10-27 08:24:15]
INFO: ds1=SELECT ******* WHERE ****** = ?;

[2023-10-27 08:24:15]
INFO: arg0: 1

[2023-10-27 08:24:15]
INFO: Calculating report…

[2023-10-27 08:24:15]
INFO: Report Pictures Processing……

[2023-10-27 08:24:15]
INFO: Calculation complete!

[2023-10-27 08:24:15]
DEBUG: Start writing report cache, Report entry ID: demo.rpx Report cache ID: A_44020684916

[2023-10-27 08:24:15]
DEBUG: Start writing pager cache, Report entry ID: demo.rpx Report cache ID: A_44020684916 Pager cache ID: A_44020750480

[2023-10-27 08:24:15]
DEBUG: pdfUrl http://***********:9999/demo/reportServlet?action=6&file=demo.rpx&columns=0&srcType=file&cachedId=A_44020684916&reportParamsId=100030&t_i_m_e=1698395055818

[2023-10-27 08:24:15]
INFO: 开始生成 HTML……

[2023-10-27 08:24:15]
DEBUG: End writing report cache, Report entry ID: demo.rpx Report cache ID: A_44020684916. time:3ms

[2023-10-27 08:24:15]
DEBUG: End writing pager cache, Report entry ID: demo.rpx Report cache ID: A_44020684916 Pager cache ID: A_44020750480. time:5ms

[2023-10-27 08:24:15]
INFO: 生成 HTML 结束……