> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/gioi-thieu-chung/huong-dan-thiet-lap-cau-hinh-de-chay-script/4.-session-configuration-cau-hinh-phien-chay.md).

# 4. Session Configuration (Cấu hình phiên chạy)

Mục này dùng để thiết lập cách kịch bản vận hành, xử lý luồng và đối phó với các tình huống lỗi khi chạy hàng loạt. Cụ thể các thông số như sau:

* 🔢 Number of Threads (Số luồng chạy song song): Điền số lượng profile trình duyệt bạn muốn phần mềm bật lên và chạy cùng một lúc (ví dụ trong hình là `10` luồng). Tùy vào cấu hình máy mạnh hay yếu để bạn chỉnh số này cho phù hợp.
* ⏱️ Thread delay (s) (Thời gian chờ mở luồng): Khoảng thời gian cách nhau (tính bằng giây) giữa việc mở luồng này với luồng tiếp theo. Nên để tầm 3-5 giây để tránh việc máy tính bật quá nhiều trình duyệt cùng một lúc gây giật lag.
* 🛡️ Skip proxy check before opening profile: Tích chọn nếu muốn bỏ qua bước kiểm tra kết nối mạng của Proxy trước khi mở profile GPM Login (hệ thống không khuyến khích chọn vì nếu Proxy chết, trình duyệt vẫn mở lên nhưng không có mạng).
* ❌ Do not close profile on error: Khi tool chạy gặp lỗi ở một bước nào đó, trình duyệt sẽ giữ nguyên trạng thái lỗi đó và không tự động tắt đi. Tính năng này rất tiện cho việc kiểm tra, soi lỗi (debug) xem script bị kẹt ở đâu.
* 🧠 Performance limit at 90%: Giới hạn hiệu năng của phần mềm ở mức tối đa 90%. Bật cái này lên giúp máy tính không bị quá tải CPU/RAM khi cắm nhiều luồng liên tục.
* 👁️ Hide window when done and active when process resume: Tự động ẩn cửa sổ trình duyệt đi sau khi đã hoàn thành công việc và hiện lại khi quá trình tiếp tục chạy.
* 🖱️ Use virtual mouse: Tích chọn để sử dụng chuột ảo của hệ thống (như hình đang bật). Việc này giúp giả lập các thao tác rê chuột, click chuột mượt mà và giống người thật hơn, hạn chế tối đa việc bị các trang web quét bot.
* 🔄 Restart on error. Number of tries: Nếu tích chọn, khi tool chạy bị lỗi giữa chừng, hệ thống sẽ tự động tắt profile đó đi và bật lại để chạy lại từ đầu. Bạn có thể tự điền số lần muốn thử lại tối đa ở ô bên cạnh.

<figure><img src="/files/DQxPJkK4jZZCO0ArEEhB" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.gpmautomate.com/gioi-thieu-chung/huong-dan-thiet-lap-cau-hinh-de-chay-script/4.-session-configuration-cau-hinh-phien-chay.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
