[Edit Max Num. Threads Directly in Config Files - Headless Run]

15 views
Skip to first unread message

Carlos Victor

unread,
Aug 5, 2025, 10:03:08 AMAug 5
to GAMA

Hi everyone,
I'm using GAMA Headless inside a container to run simulations on a university server.
I'd like to know how to set the "Max. Number of threads to use" parameter directly in a configuration file.

So far, I’ve only been able to change the number of threads through the "Preferences" interface, as shown in the example below.

I tried modifying the model itself, the preferences file, and so on, but none of these changes had any effect during the execution of my experiment.

Could anyone help me with this?


Captura de tela de 2025-07-28 20-53-59.png

Benoit Gaudou

unread,
Sep 18, 2025, 11:23:34 AM (12 days ago) Sep 18
to gama-p...@googlegroups.com
Hi,
Depending on you OS, preferences are in different file :


There are two ways to circumvent this problem: the first one is to increase the memory allocated to GAMA by the Java Virtual Machine. [...] To increase the memory allocated, first locate the file called Gama.ini. On Windows and Ubuntu, it is located next to the executable. On Mac OS X, you have to right-click on Gama.app, choose "Display Package Contents...", and you will find Gama.ini in Contents/Eclipse. This file typically looks like the following (some options/keywords may vary depending on the system), and we are interested in two JVM arguments:

Hope it helps
Cheers
Benoit

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gama-platform/90261221-e1ce-4c27-be05-2069e4694a84n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages