在某些程序中,我可以在.ini
中预先调整内存使用量。
例如在knime中:
-vm
plugins/org.knime.binary.jre.win32.x86_64_1.8.0.152-01/jre/bin
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
--launcher.defaultAction
openFile
-vmargs
-server
-Dsun.java2d.d3d=false
...
-Xmx16384m
我可以使用Xmx16384m
进行调整,因此在此示例中,RAM约为16GB。
这也可以在spyder中使用吗?不知何故,它仅使用大约2GB的RAM,这是相当低的。
icon_theme = spyder 3
opengl = software
single_instance = True
open_files_port = 21128
tear_off_menus = False
normal_screen_resolution = True
high_dpi_scaling = False
high_dpi_custom_scale_factor = False
high_dpi_custom_scale_factors = 1.5
vertical_dockwidget_titlebars = False
vertical_tabs = False
animated_docks = True
prompt_on_exit = False
panes_locked = True
window/size = (1920, 1018)
window/position = (-8, -8)
window/is_maximized = True
window/is_fullscreen = False
window/prefs_dialog_size = (745, 411)
show_status_bar = True
memory_usage/enable = True
memory_usage/timeout = 2000
cpu_usage/enable = False
cpu_usage/timeout = 2000
use_custom_margin = True
custom_margin = 0
use_custom_cursor_blinking = False
show_internal_errors = True
check_updates_on_startup = True
toolbars_visible = True
答案 0 :(得分:1)
(这里是 Spyder维护者),在Spyder中没有这样做的选项,对不起,我不知道在Python中是否可行。