我正在nginx后面运行一个dotnet核心应用程序,我只是通过运行此命令发现它当前已打开2万多个文件
function printTable($min, $max) {
$res = '';
$res .= "<table border='1'>";
$res .= '<tr><th>x</th>';
for($num = $min; $num <= $max; $num = $num + 1)
$res .= "<th>$num</th>";
$res .= '</tr>';
for($num = $min; $num <= $max; $num = $num + 1) {
echo "<tr>";
for($multBy = $min; $multBy <= $max; $multBy = $multBy + 1) {
if($multBy==$min) {
$res .= "<th>$multBy</th>";
}
$total = $num * $multBy;
$res .= "<td>$total</td>";
}
$res .= "</tr>";
}
$res .= "</table>";
}
echo printTable(1, 12);
我应该为此担心吗?如何减少此数字以获得更好的IO性能?