Skip to content

Conversation

@AbyssFishRover
Copy link

Hello,During my usage of Kafka, I identified an issue. In the kafka-server-start.bat script, there is a logic that sets different startup parameters based on the bitness (32-bit/64-bit) of the operating system. The relevant code is as follows:

image

It first queries wmic os get osarchitecture, then determines whether the operating system is 32-bit or 64-bit by checking if the result contains the string "32-bit". However, my actual tests show that this method is not reliable—the returned results vary across Windows systems with different languages and regional settings, as shown below:

English Windows:
image

Chinese Windows:
image

French Windows:
image

German Windows:
image

Japanese Windows:
image

Older Windows XP systems:
image

Kafka has users across the globe, and the current approach lacks universality.

@github-actions github-actions bot added triage PRs from the community small Small PRs labels Dec 30, 2025
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-attention small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant