Removed memory options.
This commit is contained in:
parent
53a8abf71a
commit
cc641407ea
1 changed files with 0 additions and 7 deletions
|
@ -366,8 +366,6 @@ module Import::OTRS2
|
||||||
thread_count = 8
|
thread_count = 8
|
||||||
threads = {}
|
threads = {}
|
||||||
count = 0
|
count = 0
|
||||||
memory_clear_after_loops = 10
|
|
||||||
memory_clear_loop_counter = 0
|
|
||||||
locks = { User: {} }
|
locks = { User: {} }
|
||||||
(1..thread_count).each {|thread|
|
(1..thread_count).each {|thread|
|
||||||
threads[thread] = Thread.new {
|
threads[thread] = Thread.new {
|
||||||
|
@ -377,11 +375,6 @@ module Import::OTRS2
|
||||||
run = true
|
run = true
|
||||||
steps = 20
|
steps = 20
|
||||||
while run
|
while run
|
||||||
memory_clear_loop_counter++
|
|
||||||
if memory_clear_loop_counter == memory_clear_after_loops
|
|
||||||
GC.start
|
|
||||||
memory_clear_loop_counter = 0
|
|
||||||
end
|
|
||||||
count += steps
|
count += steps
|
||||||
log "loading... thread# #{thread} ..."
|
log "loading... thread# #{thread} ..."
|
||||||
offset = count - steps
|
offset = count - steps
|
||||||
|
|
Loading…
Reference in a new issue