---
title: FDS运行时错误
description: "FDS运行时错误，报错打开太多的文件，具体报错信息为：“Fortran runtime error: Cannot open file 'weak_scaling_test_128_0022_04.s3d': Too many open files”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0093.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0093.html
indexId: b8f32c29cb3aea58b624534d3ed7ba8ebc1eb4f5da1fdd606e7e88e94e6170d674
---
# FDS运行时错误

#### 问题现象描述

FDS运行时错误，报错打开太多的文件，具体报错信息为：“Fortran runtime error: Cannot open file 'weak_scaling_test_128_0022_04.s3d': Too many open files”。


#### 关键过程、根本原因分析

FDS运行的过程中，会读写大量的文件，通常系统默认最大能打开的文件数量是1024，无法满足FDS的运行要求。


#### 结论、解决方案及效果

Taishan服务器最大支持同时打开上千万的文件，通过ulimit -n设置最大允许打开的文件数量。

例如执行命令：ulimit -n 10240
