带有lstat()和stat()调用的嵌入式Tomcat Web查询和strace

时间:2018-08-24 13:11:38

标签: java performance spring-mvc tomcat

我进行网络查询https://domain/searchservice/api/v1.0/a535/suggestions 使用strace并查找类似于下一个的API调用,其中find:

stat("/tmp/tomcat-docbase.1677567135144838559.31583/searchservice/api/v1.0/a535/suggestions"

此调用是什么,是否有可能避免对每个网络查询使用stat()?

此处的所有通话

[pid 14787] <... lstat resumed> 0x7f708f0f4f00) = -1 ENOENT (No such file or directory)
[pid 14787] lstat("/tmp",  <unfinished ...>
[pid 14787] <... lstat resumed> {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
[pid 14787] lstat("/tmp/tomcat-docbase.1677567135144838559.31583",  <unfinished ...>
[pid 14787] <... lstat resumed> {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 14787] stat("/tmp/tomcat-docbase.1677567135144838559.31583/searchservice/api/v1.0/a535/suggestions",  <unfinished ...>
[pid 14787] <... stat resumed> 0x7f708f0f6fb0) = -1 ENOENT (No such file or directory)
[pid 14787] futex(0x7f73b800e6cc, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>

0 个答案:

没有答案