Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Killed: 9 on Apple M3 Pro #3

Closed
chadbr opened this issue Jun 16, 2024 · 5 comments
Closed

Killed: 9 on Apple M3 Pro #3

chadbr opened this issue Jun 16, 2024 · 5 comments

Comments

@chadbr
Copy link

chadbr commented Jun 16, 2024

I get Killed: 9 after a minute or two of processing...

Any ideas?

Tried a recompile because of this issue - didn't help: golang/go#19734

Tried to renice the process... didn't help.

Tt's a 22gb source file... might be the problem?

@onozaty
Copy link
Owner

onozaty commented Jun 18, 2024

I don't have a Mac with me, so I can't confirm that it works, but I will try to build it again with a newer version of Go to try it out.

Thanks.

@chadbr
Copy link
Author

chadbr commented Jun 18, 2024

Sorry - the kill 9 seems to be an out of memory issue... the OS will kill the process to keep the system from running out of memory.
I assumed the parsing was incremental / event driven but it seems to be parsing the whole file via DOM (it's a 20gb table export from SQL Server)...

If that's not the intended use, no worries. I can find another way to do it.

Thanks! Chad

@onozaty
Copy link
Owner

onozaty commented Jun 19, 2024

In the current implementation, the entire XML is parsed, and then XPath is used to search. Therefore, large XML cannot be handled.

I would like to consider a way to solve this problem.

Thanks.

@onozaty
Copy link
Owner

onozaty commented Jun 22, 2024

Hi @chadbr

Improved in v1.1.0. Please try it.

Thanks.

@chadbr
Copy link
Author

chadbr commented Jul 12, 2024

@onozaty forgot to check back in - worked like a champ on very very large files.

Appreciate the work!

@chadbr chadbr closed this as completed Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants