Importing users

hey there,

we are trying to import about 150,000 users in our newly created realm. we tried from admin management console, but if we try to import about 1000 user per file, it stuck and transaction being rolled back. also we tried this command:

bin/ -Djboss.bind.address= -Djboss.bind.address.private= -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/tmp/users/myrealm-users-0.json -Dkeycloak.migration.strategy=OVERWRITE_EXISTING

but it returns error. Could you tell us what is the best practice to import that number of users?

thank in advance